mirror of https://gitlab.com/pamhyr/pamhyr2
pep8
parent
a81d65f595
commit
49d54323f6
|
|
@ -81,7 +81,6 @@ class PlotRKC(PamhyrPlot):
|
||||||
return
|
return
|
||||||
|
|
||||||
self.draw_data(highlight)
|
self.draw_data(highlight)
|
||||||
#self.draw_current()
|
|
||||||
|
|
||||||
self.idle()
|
self.idle()
|
||||||
self._init = True
|
self._init = True
|
||||||
|
|
|
||||||
|
|
@ -141,7 +141,8 @@ class PlotXY(PamhyrPlot):
|
||||||
if self._highlight_data is not None:
|
if self._highlight_data is not None:
|
||||||
rk_min, rk_max = self._highlight_data
|
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()):
|
for i, rk in enumerate(self.data.get_rk_complete_profiles()):
|
||||||
if rk_min <= rk <= rk_max:
|
if rk_min <= rk <= rk_max:
|
||||||
colors[i] = self.color_plot_current
|
colors[i] = self.color_plot_current
|
||||||
|
|
|
||||||
|
|
@ -166,7 +166,7 @@ class PlotXY(PamhyrPlot):
|
||||||
reach.geometry.get_y()):
|
reach.geometry.get_y()):
|
||||||
self.line_xy.append(np.column_stack(xy))
|
self.line_xy.append(np.column_stack(xy))
|
||||||
|
|
||||||
self._colors = "grey"
|
self._colors = self.color_plot_river_bottom
|
||||||
self._style = "-"
|
self._style = "-"
|
||||||
self.line_xy_collection = collections.LineCollection(
|
self.line_xy_collection = collections.LineCollection(
|
||||||
self.line_xy,
|
self.line_xy,
|
||||||
|
|
@ -176,23 +176,6 @@ class PlotXY(PamhyrPlot):
|
||||||
)
|
)
|
||||||
self.canvas.axes.add_collection(self.line_xy_collection)
|
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):
|
def draw_guide_lines(self, reach):
|
||||||
x_complete = reach.geometry.get_guidelines_x()
|
x_complete = reach.geometry.get_guidelines_x()
|
||||||
y_complete = reach.geometry.get_guidelines_y()
|
y_complete = reach.geometry.get_guidelines_y()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue