Skip to content
Snippets Groups Projects
Commit e4a7e49e authored by Lan Dam's avatar Lan Dam
Browse files

move picker from scatter to plot in plot_lines_mass_pos() so checking for...

move picker from scatter to plot in plot_lines_mass_pos() so checking for line2D in plotting_widget's on_pick_event works for masspos
parent f75ade07
No related branches found
No related tags found
1 merge request!159Correct clicking data point for info
This commit is part of merge request !159. Comments created here will be created in the context of that merge request.
......@@ -380,6 +380,7 @@ class Plotting:
ax.myPlot = ax.plot(x, y,
linestyle='-', linewidth=0.7,
color=self.parent.display_color['sub_basic'],
picker=True, pickradius=3,
zorder=constants.Z_ORDER['LINE'])[0]
colors = [None] * len(y)
sizes = [1.5] * len(y)
......@@ -397,7 +398,6 @@ class Plotting:
prev_v = v
count += 1
ax.scatter(x, y, marker='s', c=colors, s=sizes,
picker=True, pickradius=15,
zorder=constants.Z_ORDER['DOT'],)
ax.x_list = x_list
ax.y_list = y_list
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment