From a05a3ee3ecfd6c33a0097b632209f636d443b387 Mon Sep 17 00:00:00 2001 From: Florian Mounier Date: Tue, 18 Aug 2015 11:47:44 +0200 Subject: [PATCH] Fix box differently to avoid getting a null height on huge numbers --- pygal/view.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pygal/view.py b/pygal/view.py index 7a0688e..4821239 100644 --- a/pygal/view.py +++ b/pygal/view.py @@ -135,8 +135,8 @@ class Box(object): if not self.width: self.xmax = self.xmin + 1 if not self.height: - self.ymin -= .5 - self.ymax = self.ymin + 1 + self.ymin /= 2 + self.ymax += self.ymin xmargin = self.margin * self.width self.xmin -= xmargin self.xmax += xmargin