SL: Plots reverse draw order.

This commit is contained in:
Pierre-Antoine Rouby committed 2023-08-02 14:06:58 +02:00
1 parent 17d4b15761
commit 47ec0ac9b5
3 files changed
+11 -11

No files matched your search

@@ -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()