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

Method __init__

lib/matplotlib/backends/backend_macosx.py:151–162  ·  view source on GitHub ↗
(self, canvas, num)

Source from the content-addressed store, hash-verified

149 _toolbar2_class = NavigationToolbar2Mac
150
151 def __init__(self, canvas, num):
152 self._shown = False
153 _macosx.FigureManager.__init__(self, canvas)
154 icon_path = str(cbook._get_data_path('images/matplotlib.pdf'))
155 _macosx.FigureManager.set_icon(icon_path)
156 FigureManagerBase.__init__(self, canvas, num)
157 self._set_window_mode(mpl.rcParams["macosx.window_mode"])
158 if self.toolbar is not None:
159 self.toolbar.update()
160 if mpl.is_interactive():
161 self.show()
162 self.canvas.draw_idle()
163
164 def _close_button_pressed(self):
165 Gcf.destroy(self)

Callers

nothing calls this directly

Calls 4

showMethod · 0.95
__init__Method · 0.45
updateMethod · 0.45
draw_idleMethod · 0.45

Tested by

no test coverage detected