From 47b2da086d8082fcb232535d81ad4bf0e7399ca9 Mon Sep 17 00:00:00 2001 From: jaraco Date: Mon, 19 May 2008 03:45:11 +0000 Subject: [PATCH] Fixed bug in Plot.py (scale_division has no method round). Thanks to Richard Boulton --- lib/SVG/Plot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/SVG/Plot.py b/lib/SVG/Plot.py index 9de6ae0..471f32b 100644 --- a/lib/SVG/Plot.py +++ b/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) 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