Browse Source

Merge pull request #264 from mmrose/master

Fixing to checks breaking rendering of DateTimeLine and TimeDeltaLine
pull/278/head
Mounier Florian 9 years ago
parent
commit
05e9f3ddc7
  1. 5
      pygal/graph/xy.py

5
pygal/graph/xy.py

@ -122,8 +122,9 @@ class XY(Line, Dual):
else: else:
xrng = None xrng = None
if xrng: # these values can also be 0 (zero), so testing explicitly for None
if xrng is not None:
self._box.xmin, self._box.xmax = xmin, xmax self._box.xmin, self._box.xmax = xmin, xmax
if yrng: if yrng is not None:
self._box.ymin, self._box.ymax = ymin, ymax self._box.ymin, self._box.ymax = ymin, ymax

Loading…
Cancel
Save