matplotlib.widgets.ToolHandles#
- class matplotlib.widgets.ToolHandles(ax, x, y, *, marker='o', marker_props=None, useblit=True)[source]#
Control handles for canvas tools.
- Parameters:
- ax
Axes Matplotlib Axes where tool handles are displayed.
- x, y1D arrays
Coordinates of control handles.
- markerstr, default: 'o'
Shape of marker used to display handle. See
plot.- marker_propsdict, optional
Additional marker properties. See
Line2D.- useblitbool, default: True
Whether to use blitting for faster drawing (if supported by the backend). See the tutorial Faster rendering by using blitting for details.
- ax
Methods
__init__(ax, x, y, *[, marker, ...])closest(x, y)Return index and pixel distance to closest index.
set_animated(val)set_data(pts[, y])Set x and y positions of handles.
set_visible(val)Attributes
- property artists#
- property x#
- property y#