matplotlib.widgets.Cursor#
- class matplotlib.widgets.Cursor(ax, *, horizOn=True, vertOn=True, useblit=False, **lineprops)[source]#
Bases:
AxesWidgetA crosshair cursor that spans the Axes and moves with mouse cursor.
For the cursor to remain responsive you must keep a reference to it.
- Parameters:
- ax
Axes The
Axesto attach the cursor to.- horizOnbool, default: True
Whether to draw the horizontal line.
- vertOnbool, default: True
Whether to draw the vertical line.
- useblitbool, default: False
Use blitting for faster drawing if supported by the backend. See the tutorial Faster rendering by using blitting for details.
- ax
- Other Parameters:
Examples
See Cursor.