MCPcopy Create free account
hub / github.com/ColdGrub1384/Pyto / get_current_fig_manager

Function get_current_fig_manager

site-packages/matplotlib/pyplot.py:598–608  ·  view source on GitHub ↗

Return the figure manager of the active figure. If there is currently no active figure, a new one is created.

()

Source from the content-addressed store, hash-verified

596
597
598def get_current_fig_manager():
599 """
600 Return the figure manager of the active figure.
601
602 If there is currently no active figure, a new one is created.
603 """
604 figManager = _pylab_helpers.Gcf.get_active()
605 if figManager is None:
606 gcf() # creates an active figure as a side effect
607 figManager = _pylab_helpers.Gcf.get_active()
608 return figManager
609
610
611@docstring.copy_dedent(FigureCanvasBase.mpl_connect)

Callers 4

connectFunction · 0.85
disconnectFunction · 0.85
drawFunction · 0.85
subplot_toolFunction · 0.85

Calls 2

gcfFunction · 0.85
get_activeMethod · 0.45

Tested by

no test coverage detected