mirror of
https://gitlab.com/pamhyr/pamhyr2.git
synced 2026-10-30 03:20:41 +01:00
switch axes in reservoirs
This commit is contained in:
1 parent
e6b36f3fe5
commit
7cd4d070ac
1 file changed
+6
-6
@@ -49,8 +49,8 @@ class Plot(PamhyrPlot):
|
||||
self._mode = mode
|
||||
self._table_headers = self._trad.get_dict("table_headers")
|
||||
|
||||
self.label_x = self._table_headers["z"]
|
||||
self.label_y = self._table_headers["area"]
|
||||
self.label_x = self._table_headers["area"]
|
||||
self.label_y = self._table_headers["z"]
|
||||
|
||||
self._isometric_axis = False
|
||||
|
||||
@@ -71,8 +71,8 @@ class Plot(PamhyrPlot):
|
||||
self._init = True
|
||||
|
||||
def draw_data(self):
|
||||
x = list(map(lambda v: v[0], self.data.data))
|
||||
y = list(map(lambda v: v[1], self.data.data))
|
||||
x = 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(
|
||||
x, y,
|
||||
color=self.color_plot,
|
||||
@@ -89,7 +89,7 @@ class Plot(PamhyrPlot):
|
||||
self.update_idle()
|
||||
|
||||
def update_data(self):
|
||||
x = list(map(lambda v: v[0], self.data.data))
|
||||
y = list(map(lambda v: v[1], self.data.data))
|
||||
x = 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)
|
||||
Reference in new issue
Block a user