Browse Source

Merge pull request #85 from signed0/patch-2

Fix a bug with secondary y-axis and formatted values
pull/89/head
Mounier Florian 11 years ago
parent
commit
83bcd93cba
  1. 3
      pygal/graph/graph.py

3
pygal/graph/graph.py

@ -495,10 +495,9 @@ class Graph(BaseGraph):
self._y_2nd_labels = [(self._format(ymin + i * scale), pos) self._y_2nd_labels = [(self._format(ymin + i * scale), pos)
for i, pos in enumerate(y_pos)] for i, pos in enumerate(y_pos)]
min_2nd = float(self._y_2nd_labels[0][0])
self._scale = left_range / right_range self._scale = left_range / right_range
self._scale_diff = y_pos[0] self._scale_diff = y_pos[0]
self._scale_min_2nd = min_2nd self._scale_min_2nd = ymin
def _post_compute(self): def _post_compute(self):
pass pass

Loading…
Cancel
Save