| [ Web Proxy ] |
| Viewing: https://matplotlib.org/gallery/mplot3d/../misc/../units/../../api/backend_managers_api.html | [Back] [Original] |
Section Navigation
matplotlibmatplotlib.animationmatplotlib.artistmatplotlib.axesmatplotlib.axismatplotlib.backend_basesmatplotlib.backend_managersmatplotlib.backend_toolsmatplotlib.backendsmatplotlib.backends.backend_mixedmatplotlib.backends.backend_templatematplotlib.backends.backend_aggmatplotlib.backends.backend_cairomatplotlib.backends.backend_gtk3agg, matplotlib.backends.backend_gtk3cairomatplotlib.backends.backend_gtk4agg, matplotlib.backends.backend_gtk4cairomatplotlib.backends.backend_nbaggmatplotlib.backends.backend_pdfmatplotlib.backends.backend_pgfmatplotlib.backends.backend_psmatplotlib.backends.registrymatplotlib.backends.backend_qtagg, matplotlib.backends.backend_qtcairomatplotlib.backends.backend_svgmatplotlib.backends.backend_tkagg, matplotlib.backends.backend_tkcairomatplotlib.backends.backend_webagg_corematplotlib.backends.backend_webaggmatplotlib.backends.backend_wxagg, matplotlib.backends.backend_wxcairomatplotlib.beziermatplotlib.categorymatplotlib.cbookmatplotlib.cmmatplotlib.collectionsmatplotlib.colorbarmatplotlib.colorizermatplotlib.colorsmatplotlib.containermatplotlib.contourmatplotlib.datesmatplotlib.dvireadmatplotlib.figurematplotlib.font_managermatplotlib.ft2fontmatplotlib.gridspec
matplotlib.hatchmatplotlib.imagematplotlib.insetmatplotlib.layout_enginematplotlib.legendmatplotlib.legend_handlermatplotlib.lines
matplotlib.markers
matplotlib.mathtextmatplotlib.mlabmatplotlib.offsetboxmatplotlib.patchesmatplotlib.pathmatplotlib.patheffectsmatplotlib.pyplotmatplotlib.projections
matplotlib.quiver
matplotlib.rcsetupmatplotlib.sankeymatplotlib.scalematplotlib.sphinxext.mathmplmatplotlib.sphinxext.plot_directivematplotlib.sphinxext.figmpl_directivematplotlib.sphinxext.rolesmatplotlib.spinesmatplotlib.stylematplotlib.tablematplotlib.testingmatplotlib.textmatplotlib.texmanagermatplotlib.tickermatplotlib.transformsmatplotlib.trimatplotlib.typingmatplotlib.unitsmatplotlib.widgetsmatplotlib._afmmatplotlib._apimatplotlib._docstringmatplotlib._enumsmatplotlib._type1fontmatplotlib._tight_bboxmatplotlib._tight_layoutmpl_toolkits.mplot3dmpl_toolkits.axes_grid1mpl_toolkits.axisartistpylabmatplotlib.backend_managersmatplotlib.backend_managers#Bases: object
Event for tool manipulation (add/remove).
Bases: object
Manager for actions triggered by user interactions (key press, toolbar clicks, ...) on a Figure.
Currently toggled tools.
Add tool to ToolManager.
If successful, adds a new event tool_trigger_{name} where
{name} is the name of the tool; the event is fired every time the
tool is triggered.
Name of the tool, treated as the ID, has to be unique.
Class of the tool to be added. A subclass will be used instead if one was registered for the current canvas class.
Passed to the tool's constructor.
See also
matplotlib.backend_tools.ToolBaseThe base class for tools.
Canvas managed by FigureManager.
Figure that holds the canvas.
Return the tool object with the given name.
For convenience, this passes tool objects through.
Return the keymap associated with the specified tool.
Name of the Tool.
List of keys associated with the tool.
Emit a ToolManagerMessageEvent.
Bind the given figure to the tools.
FigureForce tools to update figure.
Connect event with string s to func.
The name of the event. The following events are recognized:
'tool_message_event'
'tool_removed_event'
'tool_added_event'
For every tool added a new event is created
'tool_trigger_TOOLNAME', where TOOLNAME is the id of the tool.
Callback function for the toolmanager event with signature:
def func(event: ToolEvent) -> Any
The callback id for the connection. This can be used in
toolmanager_disconnect.
Disconnect callback id cid.
Example usage:
cid = toolmanager.toolmanager_connect('tool_trigger_zoom', onpress)
#...later
toolmanager.toolmanager_disconnect(cid)
A dict mapping tool name -> controlled tool.
Trigger a tool and emit the tool_trigger_{name} event.
Name of the tool.
Object that wishes to trigger the tool.
Original Canvas event or None.
Extra data to pass to the tool when triggering.
ToolEventToolManagerToolManager.active_toggleToolManager.add_tool()ToolManager.canvasToolManager.figureToolManager.get_tool()ToolManager.get_tool_keymap()ToolManager.message_event()ToolManager.remove_tool()ToolManager.set_figure()ToolManager.toolmanager_connect()ToolManager.toolmanager_disconnect()ToolManager.toolsToolManager.trigger_tool()ToolManager.update_keymap()ToolManagerMessageEventToolTriggerEvent
Copyright 20022012 John Hunter, Darren Dale, Eric Firing, Michael Droettboom and the Matplotlib development team; 20122026 The Matplotlib development team.
Created using Sphinx 9.1.0.
Built from v3.11.2-1-g879ad8ebba.
Built with the PyData Sphinx Theme 0.16.1.
| Web Proxy Viewer | New URL | Original Page |