Commit 7cd4d070 authored by Theophile Terraz's avatar Theophile Terraz
Browse files

switch axes in reservoirs

No related merge requests found
Pipeline #60037 passed with stages
in 3 minutes and 44 seconds
Showing with 6 additions and 6 deletions
+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)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment