Return the figure manager of the active figure. If there is currently no active figure, a new one is created.
()
| 596 | |
| 597 | |
| 598 | def 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) |
no test coverage detected