Browse Source

Fixed bug in Plot.py (scale_division has no method round). Thanks to Richard Boulton

pull/8/head
jaraco 17 years ago
parent
commit
47b2da086d
  1. 2
      lib/SVG/Plot.py

2
lib/SVG/Plot.py

@ -193,7 +193,7 @@ class Plot(SVG.Graph):
scale_division = getattr(self, 'scale_%s_divisions' % axis) or (scale_range / 10.0) scale_division = getattr(self, 'scale_%s_divisions' % axis) or (scale_range / 10.0)
if getattr(self, 'scale_%s_integers' % axis): if getattr(self, 'scale_%s_integers' % axis):
scale_division = scale_division.round() or 1 scale_division = round(scale_division) or 1
return min_value, max_value, scale_division return min_value, max_value, scale_division

Loading…
Cancel
Save