mirror of https://gitlab.com/pamhyr/pamhyr2
pep8
parent
82093bcf95
commit
60336c25f1
|
|
@ -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(
|
|
||||||
#set(
|
|
||||||
#(i.row() for i in self._current_profile_id)
|
|
||||||
#)
|
|
||||||
#))
|
|
||||||
rows = [self._current_profile_id]
|
rows = [self._current_profile_id]
|
||||||
colors = [self.color_plot for row in range(reach.geometry.number_profiles)]
|
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:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue