Browse Source

Fixed issue of y axis labels appearing as floats (1.0) even when they're scaled to integers.

pull/8/head
jaraco 17 years ago
parent
commit
d73cb89e5e
  1. 5
      lib/SVG/Bar.py

5
lib/SVG/Bar.py

@ -194,7 +194,10 @@ class VerticalBar( Bar ):
# adapted from Plot
def get_data_values( self ):
min_value, max_value, scale_division = self.data_range()
return tuple( float_range( min_value, max_value + scale_division, scale_division ) )
result = tuple( float_range( min_value, max_value + scale_division, scale_division ) )
if self.scale_integers:
result = map(int, result)
return result
# adapted from Plot
def get_y_labels( self ):

Loading…
Cancel
Save