madgui.widget.plot module¶
Utilities to create plots using matplotlib via the Qt5Agg backend.
Classes
|
Toolbar that autoscales the figure when pressing the “Home” button. |
|
Widget containing a matplotlib figure and toolbar. |
-
class
madgui.widget.plot.
PlotWidget
(figure=None, *args, **kwargs)[source]¶ Bases:
PyQt5.QtWidgets.QWidget
Widget containing a matplotlib figure and toolbar. It fixes the annoying cursor loading quirk of the original matplotlib widget and adds an API for adding mouse capture buttons in the toolbar.
Methods
addAction
(self, QAction)addCapture
(mode, update)addTool
(tool)endCapture
(mode)startCapture
(mode, message)Capture the mouse for the plot widget using the specified mode name.