|
|
@ -60,9 +60,11 @@ class Line(Graph): |
|
|
|
def line(self, serie_node, serie, rescale=False): |
|
|
|
def line(self, serie_node, serie, rescale=False): |
|
|
|
"""Draw the line serie""" |
|
|
|
"""Draw the line serie""" |
|
|
|
if rescale and self.secondary_series: |
|
|
|
if rescale and self.secondary_series: |
|
|
|
points = [ |
|
|
|
points = [] |
|
|
|
(x, self._scale_diff + (y - self._scale_min_2nd) * self._scale) |
|
|
|
for x, y in serie.points: |
|
|
|
for x, y in serie.points] |
|
|
|
if y is not None: |
|
|
|
|
|
|
|
y = self._scale_diff + (y - self._scale_min_2nd) * self._scale |
|
|
|
|
|
|
|
points.append((x, y)) |
|
|
|
else: |
|
|
|
else: |
|
|
|
points = serie.points |
|
|
|
points = serie.points |
|
|
|
view_values = list(map(self.view, points)) |
|
|
|
view_values = list(map(self.view, points)) |
|
|
|