compare_results
Theophile Terraz 2024-10-02 14:36:49 +02:00
parent a81d65f595
commit 49d54323f6
3 changed files with 3 additions and 20 deletions

View File

@ -81,7 +81,6 @@ class PlotRKC(PamhyrPlot):
return
self.draw_data(highlight)
#self.draw_current()
self.idle()
self._init = True

View File

@ -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

View File

@ -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()