diff --git a/src/View/Results/PlotRKC.py b/src/View/Results/PlotRKC.py index 20dd0e46..4bdda8ef 100644 --- a/src/View/Results/PlotRKC.py +++ b/src/View/Results/PlotRKC.py @@ -110,7 +110,7 @@ class PlotRKC(PamhyrPlot): ts = results.get_timestamp_id(self._current_timestamp) gi_0, gi_1 = reach.global_index - water_z = table[ts, gi_0:gi_1 + 1] + zfd = table[ts, gi_0:gi_1 + 1] self.line_bottom, = self.canvas.axes.plot( rk, zfd, @@ -378,7 +378,8 @@ class PlotRKC(PamhyrPlot): table = results.get("table")["zfd"] ts = results.get_timestamp_id(self._current_timestamp) - zfd = table[ts, reach.global_index] + gi_0, gi_1 = reach.global_index + zfd = table[ts, gi_0:gi_1 + 1] self.line_bottom.remove()