matplotlib.widgets#
Widgets that are designed to work for any of the GUI backends.
All of these widgets require you to predefine anAxesinstance and pass that as the first parameter. Matplotlib doesn't try tobe too smart with respect to layout -- you will have to figure out howwide and tall you want your Axes to be to accommodate your widget.
Widget classes#
Abstract base class for GUI neutral widgets. | |
Widget connected to a single | |
A crosshair cursor that spans the Axes and moves with mouse cursor. | |
Provide a vertical (default) and/or horizontal line cursor shared between multiple Axes. | |
A GUI neutral button. | |
The base class for | |
A GUI neutral set of check buttons. | |
A GUI neutral radio button. | |
The base class for constructing Slider widgets. | |
A slider representing a floating point range. | |
A slider representing a range of floating point values. | |
A GUI neutral text input box. | |
The base class for selector widgets. | |
Select a rectangular region of an Axes. | |
Select an elliptical region of an Axes. | |
Selection curve of an arbitrary shape. | |
Selection curve of an arbitrary shape. | |
Select a polygon region of an Axes. | |
Visually select a min/max range on a single axis and call a function with those values. | |
A tool to adjust the subplot params of a |
Helper classes#
Some widgets, like the cursor, draw onto the canvas, and this is not desirable under all circumstances, like when the toolbar is in zoom-to-rect mode and drawing a rectangle. | |
Control handles for canvas tools. | |
Control handles for canvas tools. |