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

Method new_manager

lib/matplotlib/backend_bases.py:1826–1836  ·  view source on GitHub ↗

Create a new figure manager for *figure*, using this canvas class. Notes ----- This method should not be reimplemented in subclasses. If custom manager creation logic is needed, please reimplement ``FigureManager.create_with_canvas``.

(cls, figure, num)

Source from the content-addressed store, hash-verified

1824
1825 @classmethod
1826 def new_manager(cls, figure, num):
1827 """
1828 Create a new figure manager for *figure*, using this canvas class.
1829
1830 Notes
1831 -----
1832 This method should not be reimplemented in subclasses. If
1833 custom manager creation logic is needed, please reimplement
1834 ``FigureManager.create_with_canvas``.
1835 """
1836 return cls.manager_class.create_with_canvas(cls, figure, num)
1837
1838 @contextmanager
1839 def _idle_draw_cntx(self):

Calls 1

create_with_canvasMethod · 0.45

Tested by

no test coverage detected