matplotlib.widgets.ToolLineHandles
- class matplotlib.widgets.ToolLineHandles(ax, positions, direction, *, line_props=None, useblit=True)
Control handles for canvas tools.
- Parameters:
Control handles for canvas tools.
AxesMatplotlib Axes where tool handles are displayed.
Positions of handles in data coordinates.
Direction of handles, either 'vertical' or 'horizontal'
Additional line properties. See Line2D.
Whether to use blitting for faster drawing (if supported by the backend). See the tutorial Faster rendering by using blitting for details.
| |
| Return index and pixel distance to closest handle. |
| Remove the handles artist from the figure. |
| Set the animated state of the handles artist. |
| Set x- or y-positions of handles, depending on if the lines are vertical or horizontal. |
| Set the visibility state of the handles artist. |
Return index and pixel distance to closest handle.
x, y position from which the distance will be calculated to determinate the closest handle
position x, y
Direction of the handle: 'vertical' or 'horizontal'.
Positions of the handle in data coordinates.
Remove the handles artist from the figure.
Set the animated state of the handles artist.
Set x- or y-positions of handles, depending on if the lines are vertical or horizontal.
Set the positions of the handle in data coordinates
Set the visibility state of the handles artist.