|
|
@ -111,8 +111,6 @@ class Gauge(Graph): |
|
|
|
"""Override y axis to plot a polar axis""" |
|
|
|
"""Override y axis to plot a polar axis""" |
|
|
|
axis = self.svg.node(self.nodes['plot'], class_="axis x gauge") |
|
|
|
axis = self.svg.node(self.nodes['plot'], class_="axis x gauge") |
|
|
|
|
|
|
|
|
|
|
|
liste_y_labels = self._y_labels |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if self.clockwise: |
|
|
|
if self.clockwise: |
|
|
|
for i in range(int(len(self._y_labels)/2)): |
|
|
|
for i in range(int(len(self._y_labels)/2)): |
|
|
|
(label_1, theta_1) = self._y_labels[i] |
|
|
|
(label_1, theta_1) = self._y_labels[i] |
|
|
@ -198,7 +196,6 @@ class Gauge(Graph): |
|
|
|
else: |
|
|
|
else: |
|
|
|
self._y_labels = list(zip(map(self._y_format, y_pos), y_pos)) |
|
|
|
self._y_labels = list(zip(map(self._y_format, y_pos), y_pos)) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def _plot(self): |
|
|
|
def _plot(self): |
|
|
|
"""Plot all needles""" |
|
|
|
"""Plot all needles""" |
|
|
|
for serie in self.series: |
|
|
|
for serie in self.series: |
|
|
|