matplotlib.widgets.MultiCursor#
- class matplotlib.widgets.MultiCursor(*args, useblit=True, horizOn=False, vertOn=True, **lineprops)[source]#
Bases:
WidgetProvide a vertical (default) and/or horizontal line cursor shared between multiple Axes.
Call signatures:
MultiCursor(axes, *, ...) MultiCursor(canvas, axes, *, ...) # deprecated
For the cursor to remain responsive you must keep a reference to it.
- Parameters:
- canvasobject
This parameter is entirely unused.
Deprecated since version 3.11.
- axeslist of
Axes The
Axesto attach the cursor to.- useblitbool, default: True
Use blitting for faster drawing if supported by the backend. See the tutorial Faster rendering by using blitting for details.
- horizOnbool, default: False
Whether to draw the horizontal line.
- vertOnbool, default: True
Whether to draw the vertical line.
- Other Parameters:
Examples
See Multicursor.