MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / add_tools_to_manager

Function add_tools_to_manager

lib/matplotlib/backend_tools.py:963–979  ·  view source on GitHub ↗

Add multiple tools to a `.ToolManager`. Parameters ---------- toolmanager : `.backend_managers.ToolManager` Manager to which the tools are added. tools : {str: class_like}, optional The tools to add in a {name: tool} dict, see `.backend_managers.ToolMana

(toolmanager, tools=None)

Source from the content-addressed store, hash-verified

961
962
963def add_tools_to_manager(toolmanager, tools=None):
964 """
965 Add multiple tools to a `.ToolManager`.
966
967 Parameters
968 ----------
969 toolmanager : `.backend_managers.ToolManager`
970 Manager to which the tools are added.
971 tools : {str: class_like}, optional
972 The tools to add in a {name: tool} dict, see
973 `.backend_managers.ToolManager.add_tool` for more info. If not specified, then
974 defaults to `.default_tools`.
975 """
976 if tools is None:
977 tools = default_tools
978 for name, tool in tools.items():
979 toolmanager.add_tool(name, tool)
980
981
982def add_tools_to_container(container, tools=None):

Callers

nothing calls this directly

Calls 1

add_toolMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…