Create a new figure manager instance.
(cls, num, *args, **kwargs)
| 3648 | |
| 3649 | @classmethod |
| 3650 | def new_figure_manager(cls, num, *args, **kwargs): |
| 3651 | """Create a new figure manager instance.""" |
| 3652 | # This import needs to happen here due to circular imports. |
| 3653 | from matplotlib.figure import Figure |
| 3654 | fig_cls = kwargs.pop('FigureClass', Figure) |
| 3655 | fig = fig_cls(*args, **kwargs) |
| 3656 | return cls.new_figure_manager_given_figure(num, fig) |
| 3657 | |
| 3658 | @classmethod |
| 3659 | def new_figure_manager_given_figure(cls, num, figure): |
no test coverage detected