Browse Source

Fixed off-by-one error in line y labels

pull/8/head
Jason R. Coombs 14 years ago
parent
commit
d063df3fba
  1. 4
      svg/charts/line.py

4
svg/charts/line.py

@ -74,8 +74,8 @@ class Line(Graph):
if self.scale_integers: if self.scale_integers:
scale_division = min(1, round(scale_division)) scale_division = min(1, round(scale_division))
#maxvalue = maxvalue%scale_division == 0 ? if max_value % scale_division == 0:
# maxvalue : maxvalue + scale_division max_value += scale_division
labels = tuple(float_range(min_value, max_value, scale_division)) labels = tuple(float_range(min_value, max_value, scale_division))
return labels return labels

Loading…
Cancel
Save