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

handle plot line when there is only one point

parent 9c9382b0
No related branches found
No related tags found
1 merge request!151handle plot line when there is only one point
......@@ -269,13 +269,14 @@ class Plotting:
obj, c = cStr.split(':')
colors[obj] = c
l_color = 'G'
d_color = 'W'
has_dot = False
if 'L' in colors:
l_color = colors['L']
if 'D' in colors:
d_color = colors['D']
has_dot = True
else:
d_color = l_color
if chan_id == 'GPS Lk/Unlk':
sample_no_list = []
......@@ -291,7 +292,7 @@ class Plotting:
info=info, y_list=y_list, linked_ax=linked_ax)
for x, y in zip(x_list, y_list):
if not has_dot:
if not has_dot and sample_no_list[0] > 1:
# set marker to be able to click point for info
# but marker's size is small to not show dot.
ax.myPlot = ax.plot(x, y, marker='o', markersize=0.01,
......
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