mirror of https://gitlab.com/pamhyr/pamhyr2
debug water fill
parent
21bd87f74b
commit
52c153fa84
|
|
@ -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
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in New Issue