_pylab_helpers.pyi 1012 B

1234567891011121314151617181920212223242526272829
  1. from collections import OrderedDict
  2. from matplotlib.backend_bases import FigureManagerBase
  3. from matplotlib.figure import Figure
  4. class Gcf:
  5. figs: OrderedDict[int, FigureManagerBase]
  6. @classmethod
  7. def get_fig_manager(cls, num: int) -> FigureManagerBase | None: ...
  8. @classmethod
  9. def destroy(cls, num: int | FigureManagerBase) -> None: ...
  10. @classmethod
  11. def destroy_fig(cls, fig: Figure) -> None: ...
  12. @classmethod
  13. def destroy_all(cls) -> None: ...
  14. @classmethod
  15. def has_fignum(cls, num: int) -> bool: ...
  16. @classmethod
  17. def get_all_fig_managers(cls) -> list[FigureManagerBase]: ...
  18. @classmethod
  19. def get_num_fig_managers(cls) -> int: ...
  20. @classmethod
  21. def get_active(cls) -> FigureManagerBase | None: ...
  22. @classmethod
  23. def _set_new_active_manager(cls, manager: FigureManagerBase) -> None: ...
  24. @classmethod
  25. def set_active(cls, manager: FigureManagerBase) -> None: ...
  26. @classmethod
  27. def draw_all(cls, force: bool = ...) -> None: ...