Commit 60336c25 authored by Theophile Terraz's avatar Theophile Terraz
Browse files

pep8

No related merge requests found
Pipeline #55964 passed with stages
in 3 minutes and 24 seconds
Showing with 5 additions and 20 deletions
+5 -20
......@@ -162,20 +162,9 @@ class PlotXY(PamhyrPlot):
self._init = False
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 = []
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._colors, self._style = self.color_hightlight()
......@@ -189,13 +178,9 @@ class PlotXY(PamhyrPlot):
def color_hightlight(self):
reach = self.results.river.reach(self._current_reach_id)
#rows = sorted(list(
#set(
#(i.row() for i in self._current_profile_id)
#)
#))
rows=[self._current_profile_id]
colors = [self.color_plot 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)]
if len(rows) > 0:
for row in rows:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment