| 3662 | |
| 3663 | @classmethod |
| 3664 | def draw_if_interactive(cls): |
| 3665 | manager_class = cls.FigureCanvas.manager_class |
| 3666 | # Interactive backends reimplement start_main_loop or pyplot_show. |
| 3667 | backend_is_interactive = ( |
| 3668 | manager_class.start_main_loop != FigureManagerBase.start_main_loop |
| 3669 | or manager_class.pyplot_show != FigureManagerBase.pyplot_show) |
| 3670 | if backend_is_interactive and is_interactive(): |
| 3671 | manager = Gcf.get_active() |
| 3672 | if manager: |
| 3673 | manager.canvas.draw_idle() |
| 3674 | |
| 3675 | @classmethod |
| 3676 | def show(cls, *, block=None): |