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