Add option to set the colour for points based on their group.

This commit is contained in:
michaelpivato
2020-03-18 12:43:31 +10:30
parent 65a53e4df5
commit a25aa1cd44

View File

@@ -25,6 +25,8 @@ def update_line(num, iterator, line, prev_groups):
line.set_offsets(offsets)
intens = np.array([meas[0] for meas in scan])
line.set_array(intens)
# Set the colour matrix: Just set the colours to 2 * np.pi * group number (for every group number)
# line.set_color()
return line,
class Bunch: