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

increase size of mass position data points and make them pickable

parent b4ade415
No related branches found
No related tags found
1 merge request!159Correct clicking data point for info
...@@ -382,7 +382,7 @@ class Plotting: ...@@ -382,7 +382,7 @@ class Plotting:
color=self.parent.display_color['sub_basic'], color=self.parent.display_color['sub_basic'],
zorder=constants.Z_ORDER['LINE'])[0] zorder=constants.Z_ORDER['LINE'])[0]
colors = [None] * len(y) colors = [None] * len(y)
sizes = [0.5] * len(y) sizes = [1.5] * len(y)
for i in range(len(y)): for i in range(len(y)):
count = 0 count = 0
prev_v = 0 prev_v = 0
...@@ -397,7 +397,8 @@ class Plotting: ...@@ -397,7 +397,8 @@ class Plotting:
prev_v = v prev_v = v
count += 1 count += 1
ax.scatter(x, y, marker='s', c=colors, s=sizes, ax.scatter(x, y, marker='s', c=colors, s=sizes,
zorder=constants.Z_ORDER['DOT']) picker=True, pickradius=15,
zorder=constants.Z_ORDER['DOT'],)
ax.x_list = x_list ax.x_list = x_list
ax.y_list = y_list ax.y_list = y_list
ax.chan_db_info = chan_db_info ax.chan_db_info = chan_db_info
......
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