Add option to set the colour for points based on their group.
This commit is contained in:
@@ -25,6 +25,8 @@ def update_line(num, iterator, line, prev_groups):
|
|||||||
line.set_offsets(offsets)
|
line.set_offsets(offsets)
|
||||||
intens = np.array([meas[0] for meas in scan])
|
intens = np.array([meas[0] for meas in scan])
|
||||||
line.set_array(intens)
|
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,
|
return line,
|
||||||
|
|
||||||
class Bunch:
|
class Bunch:
|
||||||
|
|||||||
Reference in New Issue
Block a user