0.0.9
Theophile Terraz 2024-06-13 18:23:11 +02:00
parent 82093bcf95
commit 60336c25f1
1 changed files with 5 additions and 20 deletions

View File

@ -162,20 +162,9 @@ class PlotXY(PamhyrPlot):
self._init = False self._init = False
return return
#self.line_xy = [
#self.canvas.axes.plot(
#x, y,
#color=self.color_plot_river_bottom,
#**self.plot_default_kargs
#)
#for x, y, kp in zip(
#reach.geometry.get_x(),
#reach.geometry.get_y(),
#reach.geometry.get_kp()
#)
#]
self.line_xy = [] self.line_xy = []
for xy in zip(reach.geometry.get_x(), reach.geometry.get_y()): for xy in zip(reach.geometry.get_x(),
reach.geometry.get_y()):
self.line_xy.append(np.column_stack(xy)) self.line_xy.append(np.column_stack(xy))
self._colors, self._style = self.color_hightlight() self._colors, self._style = self.color_hightlight()
@ -189,13 +178,9 @@ class PlotXY(PamhyrPlot):
def color_hightlight(self): def color_hightlight(self):
reach = self.results.river.reach(self._current_reach_id) reach = self.results.river.reach(self._current_reach_id)
#rows = sorted(list( rows = [self._current_profile_id]
#set( colors = [self.color_plot
#(i.row() for i in self._current_profile_id) for row in range(reach.geometry.number_profiles)]
#)
#))
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)] style = ["-" for row in range(reach.geometry.number_profiles)]
if len(rows) > 0: if len(rows) > 0:
for row in rows: for row in rows: