mirror of https://gitlab.com/pamhyr/pamhyr2
switch axes in reservoirs
parent
e6b36f3fe5
commit
7cd4d070ac
|
|
@ -49,8 +49,8 @@ class Plot(PamhyrPlot):
|
||||||
self._mode = mode
|
self._mode = mode
|
||||||
self._table_headers = self._trad.get_dict("table_headers")
|
self._table_headers = self._trad.get_dict("table_headers")
|
||||||
|
|
||||||
self.label_x = self._table_headers["z"]
|
self.label_x = self._table_headers["area"]
|
||||||
self.label_y = self._table_headers["area"]
|
self.label_y = self._table_headers["z"]
|
||||||
|
|
||||||
self._isometric_axis = False
|
self._isometric_axis = False
|
||||||
|
|
||||||
|
|
@ -71,8 +71,8 @@ class Plot(PamhyrPlot):
|
||||||
self._init = True
|
self._init = True
|
||||||
|
|
||||||
def draw_data(self):
|
def draw_data(self):
|
||||||
x = list(map(lambda v: v[0], self.data.data))
|
x = list(map(lambda v: v[1], self.data.data))
|
||||||
y = list(map(lambda v: v[1], self.data.data))
|
y = list(map(lambda v: v[0], self.data.data))
|
||||||
self._line, = self.canvas.axes.plot(
|
self._line, = self.canvas.axes.plot(
|
||||||
x, y,
|
x, y,
|
||||||
color=self.color_plot,
|
color=self.color_plot,
|
||||||
|
|
@ -89,7 +89,7 @@ class Plot(PamhyrPlot):
|
||||||
self.update_idle()
|
self.update_idle()
|
||||||
|
|
||||||
def update_data(self):
|
def update_data(self):
|
||||||
x = list(map(lambda v: v[0], self.data.data))
|
x = list(map(lambda v: v[1], self.data.data))
|
||||||
y = list(map(lambda v: v[1], self.data.data))
|
y = list(map(lambda v: v[0], self.data.data))
|
||||||
|
|
||||||
self._line.set_data(x, y)
|
self._line.set_data(x, y)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue