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

Method __init__

lib/matplotlib/backend_tools.py:256–266  ·  view source on GitHub ↗
(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

254 the cursor when a tool gets triggered.
255 """
256 def __init__(self, *args, **kwargs):
257 super().__init__(*args, **kwargs)
258 self._id_drag = None
259 self._current_tool = None
260 self._default_cursor = cursors.POINTER
261 self._last_cursor = self._default_cursor
262 self.toolmanager.toolmanager_connect('tool_added_event',
263 self._add_tool_cbk)
264 for tool in self.toolmanager.tools.values(): # process current tools
265 self._add_tool_cbk(mpl.backend_managers.ToolEvent(
266 'tool_added_event', self.toolmanager, tool))
267
268 def set_figure(self, figure):
269 if self._id_drag:

Callers

nothing calls this directly

Calls 4

_add_tool_cbkMethod · 0.95
toolmanager_connectMethod · 0.80
valuesMethod · 0.80
__init__Method · 0.45

Tested by

no test coverage detected