From d063df3fba479fb41107099e6b4311dc3ad49b3c Mon Sep 17 00:00:00 2001 From: "Jason R. Coombs" Date: Wed, 30 Mar 2011 00:01:11 -0400 Subject: [PATCH] Fixed off-by-one error in line y labels --- svg/charts/line.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/svg/charts/line.py b/svg/charts/line.py index cd2ab64..651297c 100644 --- a/svg/charts/line.py +++ b/svg/charts/line.py @@ -74,8 +74,8 @@ class Line(Graph): if self.scale_integers: scale_division = min(1, round(scale_division)) - #maxvalue = maxvalue%scale_division == 0 ? - # maxvalue : maxvalue + scale_division + if max_value % scale_division == 0: + max_value += scale_division labels = tuple(float_range(min_value, max_value, scale_division)) return labels