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

Method __init__

lib/matplotlib/backend_managers.py:46–60  ·  view source on GitHub ↗
(self, figure=None)

Source from the content-addressed store, hash-verified

44 """
45
46 def __init__(self, figure=None):
47
48 self._key_press_handler_id = None
49
50 self._tools = {}
51 self._keys = {}
52 self._toggled = {}
53 self._callbacks = cbook.CallbackRegistry()
54
55 # to process keypress event
56 self.keypresslock = widgets.LockDraw()
57 self.messagelock = widgets.LockDraw()
58
59 self._figure = None
60 self.set_figure(figure)
61
62 @property
63 def canvas(self):

Callers

nothing calls this directly

Calls 1

set_figureMethod · 0.95

Tested by

no test coverage detected