debug water fill

This commit is contained in:
Theophile Terraz committed 2025-02-03 11:46:55 +01:00
1 parent 21bd87f74b
commit 52c153fa84
1 file changed
+5
+5
View File
@@ -57,6 +57,9 @@ class PlotRKC(PamhyrPlot):
self._isometric_axis = False
self._auto_relim_update = True
self._autoscale_update = True
@property
def results(self):
return self.data
@@ -229,6 +232,7 @@ class PlotRKC(PamhyrPlot):
self.water_fill = self.canvas.axes.fill_between(
rk, self._river_bottom, water_z,
where=[b <= z for b, z in zip(self._river_bottom, water_z)],
color=self.color_plot_river_water_zone,
alpha=0.7,
interpolate=True
@@ -361,6 +365,7 @@ class PlotRKC(PamhyrPlot):
self.water_fill.remove()
self.water_fill = self.canvas.axes.fill_between(
rk, self._river_bottom, water_z,
where=[rb <= wz for rb, wz in zip(self._river_bottom, water_z)],
color=self.color_plot_river_water_zone,
alpha=0.7, interpolate=True
)