diff --git a/src/View/HydraulicStructures/PlotRKC.py b/src/View/HydraulicStructures/PlotRKC.py index f291ab9f..037a3663 100644 --- a/src/View/HydraulicStructures/PlotRKC.py +++ b/src/View/HydraulicStructures/PlotRKC.py @@ -81,7 +81,6 @@ class PlotRKC(PamhyrPlot): return self.draw_data(highlight) - #self.draw_current() self.idle() self._init = True diff --git a/src/View/LateralContribution/PlotXY.py b/src/View/LateralContribution/PlotXY.py index 07c1af9b..abf2ec6a 100644 --- a/src/View/LateralContribution/PlotXY.py +++ b/src/View/LateralContribution/PlotXY.py @@ -141,7 +141,8 @@ class PlotXY(PamhyrPlot): if self._highlight_data is not None: rk_min, rk_max = self._highlight_data - colors = [self.color_plot_river_bottom for row in range(len(self._data))] + colors = [self.color_plot_river_bottom + for row in range(len(self._data))] for i, rk in enumerate(self.data.get_rk_complete_profiles()): if rk_min <= rk <= rk_max: colors[i] = self.color_plot_current diff --git a/src/View/Results/PlotXY.py b/src/View/Results/PlotXY.py index 3ba4926d..8ae76c04 100644 --- a/src/View/Results/PlotXY.py +++ b/src/View/Results/PlotXY.py @@ -166,7 +166,7 @@ class PlotXY(PamhyrPlot): reach.geometry.get_y()): self.line_xy.append(np.column_stack(xy)) - self._colors = "grey" + self._colors = self.color_plot_river_bottom self._style = "-" self.line_xy_collection = collections.LineCollection( self.line_xy, @@ -176,23 +176,6 @@ class PlotXY(PamhyrPlot): ) self.canvas.axes.add_collection(self.line_xy_collection) - #def color_hightlight(self): - #reach = self.results.river.reach(self._current_reach_id) - #rows = [self._current_profile_id] - #colors = [self.color_plot - #for row in range(reach.geometry.number_profiles)] - #style = ["-" for row in range(reach.geometry.number_profiles)] - #if len(rows) > 0: - #for row in rows: - #colors[row] = self.color_plot_current - #if rows[0] > 0: - #colors[rows[0]-1] = self.color_plot_previous - #style[rows[0]-1] = "--" - #if rows[-1] < reach.geometry.number_profiles-1: - #colors[rows[-1]+1] = self.color_plot_next - #style[rows[-1]+1] = "--" - #return colors, style - def draw_guide_lines(self, reach): x_complete = reach.geometry.get_guidelines_x() y_complete = reach.geometry.get_guidelines_y()