diff --git a/src/View/Results/PlotKPC.py b/src/View/Results/PlotKPC.py index 1cab022e0caf86727dc8374564f985d125cc53c7..71fa3aab795ba674ae6c5bdf87c3941bd1b28786 100644 --- a/src/View/Results/PlotKPC.py +++ b/src/View/Results/PlotKPC.py @@ -119,11 +119,14 @@ class PlotKPC(PamhyrPlot): self.line_kp_sl.append(None) self.line_kp_sl[i], = self.canvas.axes.plot( kp, z, - linestyle="solid" if i == len(final_z_sl) - 1 else "--", + linestyle=( + "solid" if i == len(final_z_sl) - 1 + else self.linestyle[1:][i // len(self.colors)] + ), lw=1., color=( self.color_plot_river_bottom if i == len(final_z_sl) - 1 - else self.colors[i] + else self.colors[i % len(self.colors)] ) ) diff --git a/src/View/Tools/PamhyrPlot.py b/src/View/Tools/PamhyrPlot.py index 59883f6e58adf6f29c61847a392dd1269b261357..c544c97e7afec67b9a692fde6bd5c1e566c33a83 100644 --- a/src/View/Tools/PamhyrPlot.py +++ b/src/View/Tools/PamhyrPlot.py @@ -40,7 +40,7 @@ class PamhyrPlot(APlot): color_plot_river_water_zone = "skyblue" colors = list(mplcolors.TABLEAU_COLORS) - linestyle = ['solid', 'dotted', 'dashed', 'dashdot'] + linestyle = ['solid', 'dashed', 'dashdot', 'dotted'] plot_default_kargs = { "lw": 1.,