set_xy_array#
- Client.set_xy_array(positions, width=None, height=None)#
Set the scan array for a set of x,y positions.
- Parameters:
positions (np.array) – A list of x,y positions to scan in the form [[x1, y1], [x2, y2], …]. Each position should be an integer. If width and height are not provided, the max and min of the positions will be used.
width (int, optional) – The width of the scan array, by default None. If None, the max of the x positions will be used and the scan will cover the full width of the image.
height (int, optional) – The height of the scan array, by default None. If None, the max of the y positions will be used and the scan will cover the full height of the image.