Browse Source

Merge pull request #35 from dzen/master

Force self._min and self._max to be zeroed instead of None
pull/39/head
Mounier Florian 12 years ago
parent
commit
7308dee54b
  1. 4
      pygal/graph/line.py

4
pygal/graph/line.py

@ -117,8 +117,8 @@ class Line(Graph):
if self.include_x_axis:
# Y Label
self._box.ymin = min(self._min, 0)
self._box.ymax = max(self._max, 0)
self._box.ymin = min(self._min or 0, 0)
self._box.ymax = max(self._max or 0, 0)
else:
self._box.ymin = self._min
self._box.ymax = self._max

Loading…
Cancel
Save