mirror of https://gitlab.com/pamhyr/pamhyr2
Results: Plot: Fix display whene more than 10 sl.
parent
0e75d67671
commit
ab11d15729
|
|
@ -119,11 +119,14 @@ class PlotKPC(PamhyrPlot):
|
||||||
self.line_kp_sl.append(None)
|
self.line_kp_sl.append(None)
|
||||||
self.line_kp_sl[i], = self.canvas.axes.plot(
|
self.line_kp_sl[i], = self.canvas.axes.plot(
|
||||||
kp, z,
|
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.,
|
lw=1.,
|
||||||
color=(
|
color=(
|
||||||
self.color_plot_river_bottom if i == len(final_z_sl) - 1
|
self.color_plot_river_bottom if i == len(final_z_sl) - 1
|
||||||
else self.colors[i]
|
else self.colors[i % len(self.colors)]
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -40,7 +40,7 @@ class PamhyrPlot(APlot):
|
||||||
color_plot_river_water_zone = "skyblue"
|
color_plot_river_water_zone = "skyblue"
|
||||||
|
|
||||||
colors = list(mplcolors.TABLEAU_COLORS)
|
colors = list(mplcolors.TABLEAU_COLORS)
|
||||||
linestyle = ['solid', 'dotted', 'dashed', 'dashdot']
|
linestyle = ['solid', 'dashed', 'dashdot', 'dotted']
|
||||||
|
|
||||||
plot_default_kargs = {
|
plot_default_kargs = {
|
||||||
"lw": 1.,
|
"lw": 1.,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue