From b7a394807ca703c65720d1be5725e9a42ef2948e Mon Sep 17 00:00:00 2001 From: Florian Mounier Date: Mon, 1 Oct 2012 10:47:28 +0200 Subject: [PATCH] Fix values inter dependency --- pygal/graph/base.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pygal/graph/base.py b/pygal/graph/base.py index 0edc192..bf3b871 100644 --- a/pygal/graph/base.py +++ b/pygal/graph/base.py @@ -1,4 +1,4 @@ -# -*- coding: utf-8 -*- + # -*- coding: utf-8 -*- # This file is part of pygal # # A python svg graph plotting library @@ -48,7 +48,9 @@ class BaseGraph(object): self._box = Box() self.view = None if self.logarithmic and self.zero == 0: - self.zero = self._min + # Explicit min to avoid interpolation dependency + self.zero = min( + val for serie in self.series for val in serie.values) if self.series and self._has_data(): self._draw()