matplotlib.widgets.AxesWidget
- class matplotlib.widgets.AxesWidget(ax)
Bases:
WidgetWidget connected to a single
Axes.To guarantee that the widget remains responsive and not garbage-collected, a reference to the object should be maintained by the user.
This is necessary because the callback registry maintains only weak-refs to the functions, which are member functions of the widget. If there are no references to the widget object it may be garbage collected which will disconnect the callbacks.