ZoomTool#
- class glue_qt.viewers.matplotlib.toolbar.ZoomTool(viewer=None)[source]#
Bases:
MatplotlibCheckableTool
Attributes Summary
A property that callback functions can be added to.
Methods Summary
activate
()Fired when the toolbar button is activated
close
()Fired when the toolbar button is deactivated
List of QtWidgets.QActions to be attached to this tool as a context menu.
Attributes Documentation
- action_text = 'Zoom'#
- enabled#
A property that callback functions can be added to.
When a callback property changes value, each callback function is called with information about the state change. Otherwise, callback properties behave just like normal instance variables.
CallbackProperties must be defined at the class level. Use the helper function
add_callback()
to attach a callback to a specific instance of a class with CallbackProperties- Parameters:
- default
The initial value for the property
- docstringstr
The docstring for the property
- getter, setterfunc
Custom getter and setter functions (advanced)
- icon = 'glue_zoom_to_rect'#
- shortcut = 'Z'#
- status_tip = None#
- tool_id = 'mpl:zoom'#
- tool_tip = 'Zoom to rectangle'#
Methods Documentation
- close()#
List of QtWidgets.QActions to be attached to this tool as a context menu.