diff --git a/src/View/SedimentLayers/Edit/Plot.py b/src/View/SedimentLayers/Edit/Plot.py index 14ebb9481572ec835dba396e0e89bc6adf046a9f..8f25c43649df4af71159e72bcb0c2173fc7f8c0f 100644 --- a/src/View/SedimentLayers/Edit/Plot.py +++ b/src/View/SedimentLayers/Edit/Plot.py @@ -73,16 +73,16 @@ class Plot(APlot): [z] ) - for i, zsl in enumerate(z_sl): + for i, zsl in enumerate(reversed(z_sl)): self.line_kp_sl.append(None) self.line_kp_sl[i], = self.canvas.axes.plot( x, zsl, - label=names[i], - linestyle="solid" if i == 0 else "--", + label=names[-(i+1)], + linestyle="solid" if i == len(names) - 1 else "--", lw=1.8, - color='grey' if i == 0 else None + color='grey' if i == len(names) - 1 else None ) - self.canvas.axes.text(x[0] + 0.01, zsl[0] + 0.01, f'{names[i]}') + self.canvas.axes.text(x[0] + 0.01, zsl[0] + 0.01, f'{names[-(i+1)]}') self.canvas.figure.tight_layout() self.canvas.figure.canvas.draw_idle() diff --git a/src/View/SedimentLayers/Reach/Plot.py b/src/View/SedimentLayers/Reach/Plot.py index 1ab6dabac8022f03e84632bf7ac49d1a5a02706d..a312a8ceea6ffd9784cd8d56b83781f029250063 100644 --- a/src/View/SedimentLayers/Reach/Plot.py +++ b/src/View/SedimentLayers/Reach/Plot.py @@ -69,13 +69,13 @@ class Plot(APlot): [z_min] ) - for i, z in enumerate(z_sl): + for i, z in enumerate(reversed(z_sl)): self.line_kp_sl.append(None) self.line_kp_sl[i], = self.canvas.axes.plot( kp, z, - linestyle="solid" if i == 0 else "--", + linestyle="solid" if i == len(z_sl) - 1 else "--", lw=1.8, - color='grey' if i == 0 else None + color='grey' if i == len(z_sl) - 1 else None ) self.canvas.figure.tight_layout() diff --git a/src/View/SedimentLayers/Reach/Profile/Plot.py b/src/View/SedimentLayers/Reach/Profile/Plot.py index b8c9b66f4cb4af8ecf2ee48aac6643c360d30b61..50b4bba26c40ebaf4b10c04bbe82d9184407396d 100644 --- a/src/View/SedimentLayers/Reach/Profile/Plot.py +++ b/src/View/SedimentLayers/Reach/Profile/Plot.py @@ -68,13 +68,13 @@ class Plot(APlot): [z] ) - for i, zsl in enumerate(z_sl): + for i, zsl in enumerate(reversed(z_sl)): self.line_kp_sl.append(None) self.line_kp_sl[i], = self.canvas.axes.plot( x, zsl, - linestyle="solid" if i == 0 else "--", + linestyle="solid" if i == len(z_sl) - 1 else "--", lw=1.8, - color='grey' if i == 0 else None + color='grey' if i == len(z_sl) - 1 else None ) self.canvas.figure.tight_layout()