matplotlib.widgets.ToolHandles#

class matplotlib.widgets.ToolHandles(ax, x, y, *, marker='o', marker_props=None, useblit=True)[source]#

Control handles for canvas tools.

Parameters:
axAxes

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.

__init__(ax, x, y, *, marker='o', marker_props=None, useblit=True)[source]#

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#
closest(x, y)[source]#

Return index and pixel distance to closest index.

set_animated(val)[source]#
set_data(pts, y=None)[source]#

Set x and y positions of handles.

set_visible(val)[source]#
property x#
property y#