From 8927525a536c194f3571c2f844554003682658dd Mon Sep 17 00:00:00 2001 From: Benoit Calvez Date: Thu, 6 Jun 2013 13:51:52 +0200 Subject: [PATCH] Fix self._min and self._max --- pygal/graph/line.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pygal/graph/line.py b/pygal/graph/line.py index 1686e3c..ec07e2e 100644 --- a/pygal/graph/line.py +++ b/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