diff --git a/src/View/Geometry/PlotAC.py b/src/View/Geometry/PlotAC.py index 24567bef97f50b131c4dbc6d5c0e7ebdfb0c4bfa..cccffe24b750761066a2e1607bd408c13b5ffb31 100644 --- a/src/View/Geometry/PlotAC.py +++ b/src/View/Geometry/PlotAC.py @@ -129,7 +129,7 @@ class PlotAC(PamhyrPlot): if txt.strip() in self.complete_gl: color = self.color_complete_gl[ - lcomplete.index(txt) + lcomplete.index(txt) % len(self.color_complete_gl) ] else: color = self.color_incomplete_gl[ diff --git a/src/View/Geometry/PlotKPZ.py b/src/View/Geometry/PlotKPZ.py index 35e9ffabe00cd420a18f8443cdeec8312c462b89..f4dbd7907024086339533d376fd9324fd8967f08 100644 --- a/src/View/Geometry/PlotKPZ.py +++ b/src/View/Geometry/PlotKPZ.py @@ -167,7 +167,9 @@ class PlotKPZ(PamhyrPlot): self.line_kp_zgl.append( self.canvas.axes.plot( - kp, z, lw=1., color=self.colors[ind] + kp, z, lw=1., + color=self.colors[ind % len(self.colors)], + linestyle=self.linestyle[ind // len(self.colors)] ) ) ind += 1 diff --git a/src/View/Geometry/PlotXY.py b/src/View/Geometry/PlotXY.py index 3bf49cbb0b89ec1e7f229a2e5bd092312289a8fe..0d4a4302584c4162e97610e896f3526e29a23052 100644 --- a/src/View/Geometry/PlotXY.py +++ b/src/View/Geometry/PlotXY.py @@ -98,7 +98,8 @@ class PlotXY(PamhyrPlot): self.line_gl = [] for x, y in zip(x_complete, y_complete): line = self.canvas.axes.plot( - x, y, color=self.colors[ind] + x, y, color=self.colors[ind % len(self.colors)], + linestyle=self.linestyle[ind // len(self.colors)] ) self.line_gl.append(line) ind += 1 diff --git a/src/View/Tools/PamhyrPlot.py b/src/View/Tools/PamhyrPlot.py index 0823227315c191ec0f6030046ec1ec6280ee663e..59883f6e58adf6f29c61847a392dd1269b261357 100644 --- a/src/View/Tools/PamhyrPlot.py +++ b/src/View/Tools/PamhyrPlot.py @@ -40,6 +40,7 @@ class PamhyrPlot(APlot): color_plot_river_water_zone = "skyblue" colors = list(mplcolors.TABLEAU_COLORS) + linestyle = ['solid', 'dotted', 'dashed', 'dashdot'] plot_default_kargs = { "lw": 1.,