jaraco / svg.charts

SVG Charting Library for Python
MIT License
29 stars 10 forks source link

missing "self." in graph.calculate_offsets_bottom() #5

Closed jaraco closed 8 years ago

jaraco commented 10 years ago

Originally reported by: Oronis (Bitbucket: Oronis, GitHub: Oronis)


It appears that there is a code error in graph.calculate_offsets_bottom() The line:

#!python

max_x_label_height_px = x_label_font_size

should have a self. in order to correctly reference x_label_font_size. I.e.

#!python

max_x_label_height_px = self.x_label_font_size

None of the samples.py make use of this attribute, which is why I'm assuming it has slipped through.


jaraco commented 10 years ago

Original comment by Jason R. Coombs (Bitbucket: jaraco, GitHub: jaraco):


Correct missing references to class attributes. Fixes #5