|
|
@ -52,9 +52,10 @@ class BaseGraph(object): |
|
|
|
self.view = None |
|
|
|
self.view = None |
|
|
|
if self.logarithmic and self.zero == 0: |
|
|
|
if self.logarithmic and self.zero == 0: |
|
|
|
# Explicit min to avoid interpolation dependency |
|
|
|
# Explicit min to avoid interpolation dependency |
|
|
|
self.zero = min(filter( |
|
|
|
positive_values = filter( |
|
|
|
lambda x: x > 0, |
|
|
|
lambda x: x > 0, |
|
|
|
[val for serie in self.series for val in serie.safe_values])) |
|
|
|
[val for serie in self.series for val in serie.safe_values]) |
|
|
|
|
|
|
|
self.zero = min(positive_values) if positive_values else 0 |
|
|
|
self._draw() |
|
|
|
self._draw() |
|
|
|
self.svg.pre_render() |
|
|
|
self.svg.pre_render() |
|
|
|
|
|
|
|
|
|
|
|