| [ Web Proxy ] |
| Viewing: https://matplotlib.org/stable/api/_as_gen/../_as_gen/../backend_tools_api.html | [Back] [Original] |
matplotlib.backend_tools#Abstract base classes define the primitives for Tools.
These tools are used by matplotlib.backend_managers.ToolManager
ToolBaseSimple stateless tool
ToolToggleBaseTool that has two states, only one Toggle tool can be
active at any given time for the same
matplotlib.backend_managers.ToolManager
Bases: ToolToggleBase
Base Tool to toggle between linear and logarithmic.
Disable the toggle tool.
trigger call this method when toggled is True.
This can happen in different circumstances.
Click on the toolbar tool button.
Call to matplotlib.backend_managers.ToolManager.trigger_tool.
Another ToolToggleBase derived tool is triggered
(from the same ToolManager).
Bases: ToolBase
Base tool for the configuration of subplots.
Description of the Tool.
str: Tooltip used if the Tool is included in a Toolbar.
Icon filename.
str | None: Filename of the Toolbar icon; either absolute, or relative to the
directory containing the Python source file where the Tool.image class attribute
is defined (in the latter case, this cannot be defined as an instance attribute).
In either case, the extension is optional; leaving it off lets individual backends
select the icon format they prefer. If None, the name is used as a label in the
toolbar button.
Bases: IntEnum
Backend-independent cursor types.
Bases: ToolBase
Draw and remove a rubberband.
Call draw_rubberband or remove_rubberband based on data.
Bases: ToolBase
Base tool for figure saving.
The type of the None singleton.
Description of the Tool.
str: Tooltip used if the Tool is included in a Toolbar.
Icon filename.
str | None: Filename of the Toolbar icon; either absolute, or relative to the
directory containing the Python source file where the Tool.image class attribute
is defined (in the latter case, this cannot be defined as an instance attribute).
In either case, the extension is optional; leaving it off lets individual backends
select the icon format they prefer. If None, the name is used as a label in the
toolbar button.
Bases: ViewsPositionsBase
Move back up the view limits stack.
The type of the None singleton.
Description of the Tool.
str: Tooltip used if the Tool is included in a Toolbar.
Icon filename.
str | None: Filename of the Toolbar icon; either absolute, or relative to the
directory containing the Python source file where the Tool.image class attribute
is defined (in the latter case, this cannot be defined as an instance attribute).
In either case, the extension is optional; leaving it off lets individual backends
select the icon format they prefer. If None, the name is used as a label in the
toolbar button.
Bases: object
Base tool class.
A base tool, only implements trigger method or no method at all.
The tool is instantiated by matplotlib.backend_managers.ToolManager.
The canvas of the figure affected by this tool, or None.
Keymap to associate with this tool.
list[str]: List of keys that will trigger this tool when a keypress
event is emitted on self.figure.canvas. Note that this attribute is
looked up on the instance, and can therefore be a property (this is used
e.g. by the built-in tools to load the rcParams at instantiation time).
Description of the Tool.
str: Tooltip used if the Tool is included in a Toolbar.
The Figure affected by this tool, or None.
Icon filename.
str | None: Filename of the Toolbar icon; either absolute, or relative to the
directory containing the Python source file where the Tool.image class attribute
is defined (in the latter case, this cannot be defined as an instance attribute).
In either case, the extension is optional; leaving it off lets individual backends
select the icon format they prefer. If None, the name is used as a label in the
toolbar button.
The tool id (str, must be unique among tools of a tool manager).
The ToolManager that controls this tool.
Called when this tool gets used.
This method is called by ToolManager.trigger_tool.
EventThe canvas event that caused this tool to be called.
Object that requested the tool to be triggered.
Extra data.
Bases: ToolBase
Tool to copy the figure to the clipboard.
The type of the None singleton.
Description of the Tool.
str: Tooltip used if the Tool is included in a Toolbar.
Called when this tool gets used.
This method is called by ToolManager.trigger_tool.
EventThe canvas event that caused this tool to be called.
Object that requested the tool to be triggered.
Extra data.
Bases: ToolBase
Send message with the current pointer position.
This tool runs in the background reporting the position of the cursor.
Bases: ViewsPositionsBase
Move forward in the view lim stack.
The type of the None singleton.
Description of the Tool.
str: Tooltip used if the Tool is included in a Toolbar.
Icon filename.
str | None: Filename of the Toolbar icon; either absolute, or relative to the
directory containing the Python source file where the Tool.image class attribute
is defined (in the latter case, this cannot be defined as an instance attribute).
In either case, the extension is optional; leaving it off lets individual backends
select the icon format they prefer. If None, the name is used as a label in the
toolbar button.
Bases: ToolBase
Tool to toggle full screen.
The type of the None singleton.
Description of the Tool.
str: Tooltip used if the Tool is included in a Toolbar.
Called when this tool gets used.
This method is called by ToolManager.trigger_tool.
EventThe canvas event that caused this tool to be called.
Object that requested the tool to be triggered.
Extra data.
Bases: ToolBase
Tool to toggle the major grids of the figure.
The type of the None singleton.
Description of the Tool.
str: Tooltip used if the Tool is included in a Toolbar.
Called when this tool gets used.
This method is called by ToolManager.trigger_tool.
EventThe canvas event that caused this tool to be called.
Object that requested the tool to be triggered.
Extra data.
Bases: ToolBase
The type of the None singleton.
Description of the Tool.
str: Tooltip used if the Tool is included in a Toolbar.
Convert a shortcut string from the notation used in rc config to the standard notation for displaying shortcuts, e.g. 'ctrl+a' -> 'Ctrl+A'.
Icon filename.
str | None: Filename of the Toolbar icon; either absolute, or relative to the
directory containing the Python source file where the Tool.image class attribute
is defined (in the latter case, this cannot be defined as an instance attribute).
In either case, the extension is optional; leaving it off lets individual backends
select the icon format they prefer. If None, the name is used as a label in the
toolbar button.
Bases: ViewsPositionsBase
Restore the original view limits.
The type of the None singleton.
Description of the Tool.
str: Tooltip used if the Tool is included in a Toolbar.
Icon filename.
str | None: Filename of the Toolbar icon; either absolute, or relative to the
directory containing the Python source file where the Tool.image class attribute
is defined (in the latter case, this cannot be defined as an instance attribute).
In either case, the extension is optional; leaving it off lets individual backends
select the icon format they prefer. If None, the name is used as a label in the
toolbar button.
Bases: ToolBase
Tool to toggle the major and minor grids of the figure.
The type of the None singleton.
Description of the Tool.
str: Tooltip used if the Tool is included in a Toolbar.
Called when this tool gets used.
This method is called by ToolManager.trigger_tool.
EventThe canvas event that caused this tool to be called.
Object that requested the tool to be triggered.
Extra data.
Bases: ZoomPanBase
Pan Axes with left mouse, zoom with right.
The type of the None singleton.
Description of the Tool.
str: Tooltip used if the Tool is included in a Toolbar.
Icon filename.
str | None: Filename of the Toolbar icon; either absolute, or relative to the
directory containing the Python source file where the Tool.image class attribute
is defined (in the latter case, this cannot be defined as an instance attribute).
In either case, the extension is optional; leaving it off lets individual backends
select the icon format they prefer. If None, the name is used as a label in the
toolbar button.
Bases: ToolBase
Tool to call the figure manager destroy method.
The type of the None singleton.
Description of the Tool.
str: Tooltip used if the Tool is included in a Toolbar.
Called when this tool gets used.
This method is called by ToolManager.trigger_tool.
EventThe canvas event that caused this tool to be called.
Object that requested the tool to be triggered.
Extra data.
Bases: ToolBase
Tool to call the figure manager destroy method.
The type of the None singleton.
Description of the Tool.
str: Tooltip used if the Tool is included in a Toolbar.
Called when this tool gets used.
This method is called by ToolManager.trigger_tool.
EventThe canvas event that caused this tool to be called.
Object that requested the tool to be triggered.
Extra data.
Bases: ToolBase
Change to the current cursor while inaxes.
This tool, keeps track of all ToolToggleBase derived tools, and updates
the cursor when a tool gets triggered.
Bases: ToolBase
Toggleable tool.
Every time it is triggered, it switches between enable and disable.
Variable length argument to be used by the Tool.
toggled if present and True, sets the initial state of the Tool
Arbitrary keyword arguments to be consumed by the Tool
Cursor to use when the tool is active.
Default of toggled state.
Disable the toggle tool.
trigger call this method when toggled is True.
This can happen in different circumstances.
Click on the toolbar tool button.
Call to matplotlib.backend_managers.ToolManager.trigger_tool.
Another ToolToggleBase derived tool is triggered
(from the same ToolManager).
Attribute to group 'radio' like tools (mutually exclusive).
str that identifies the group or None if not belonging to a group.
State of the toggled tool.
Bases: ToolBase
Auxiliary Tool to handle changes in views and positions.
Runs in the background and should get used by all the tools that need to access the figure's history of views and positions, e.g.
Push the current view limits and position onto their respective stacks.
Bases: AxisScaleBase
Tool to toggle between linear and logarithmic scales on the X axis.
The type of the None singleton.
Bases: AxisScaleBase
Tool to toggle between linear and logarithmic scales on the Y axis.
The type of the None singleton.
Bases: ZoomPanBase
A Tool for zooming using a rectangle selector.
The type of the None singleton.
Description of the Tool.
str: Tooltip used if the Tool is included in a Toolbar.
Icon filename.
str | None: Filename of the Toolbar icon; either absolute, or relative to the
directory containing the Python source file where the Tool.image class attribute
is defined (in the latter case, this cannot be defined as an instance attribute).
In either case, the extension is optional; leaving it off lets individual backends
select the icon format they prefer. If None, the name is used as a label in the
toolbar button.
Bases: ToolBase
Base class for ToolHome, ToolBack and ToolForward.
Called when this tool gets used.
This method is called by ToolManager.trigger_tool.
EventThe canvas event that caused this tool to be called.
Object that requested the tool to be triggered.
Extra data.
Bases: ToolToggleBase
Add multiple tools to the container.
backend_bases.ToolContainerBase object that will get the tools
added.
List in the form [[group1, [tool1, tool2 ...]], [group2, [...]]]
where the tools [tool1, tool2, ...] will display in group1.
See backend_bases.ToolContainerBase.add_tool for details. If not specified,
then defaults to default_toolbar_tools.
Add multiple tools to a ToolManager.
backend_managers.ToolManagerManager to which the tools are added.
The tools to add in a {name: tool} dict, see
backend_managers.ToolManager.add_tool for more info. If not specified, then
defaults to default_tools.
The default tools to add to a container.
The default tools to add to a tool manager.
| Web Proxy Viewer | New URL | Original Page |