diff --git a/doc/api/next_api_changes/removals/26872-AD.rst b/doc/api/next_api_changes/removals/26872-AD.rst new file mode 100644 index 000000000000..2f678ffc3cfd --- /dev/null +++ b/doc/api/next_api_changes/removals/26872-AD.rst @@ -0,0 +1,6 @@ +``repeat`` +~~~~~~~~~~ +... of `.TimedAnimation` is removed without replacements. +``save_count`` +~~~~~~~~~~~~~~ +... of `.FuncAnimation` is removed without replacements. diff --git a/lib/matplotlib/animation.py b/lib/matplotlib/animation.py index e9b1c23658cd..e7d09e7d7847 100644 --- a/lib/matplotlib/animation.py +++ b/lib/matplotlib/animation.py @@ -1446,8 +1446,6 @@ def _step(self, *args): self.event_source.interval = self._interval return True - repeat = _api.deprecate_privatize_attribute("3.7") - class ArtistAnimation(TimedAnimation): """ @@ -1788,8 +1786,6 @@ def _draw_frame(self, framedata): for a in self._drawn_artists: a.set_animated(self._blit) - save_count = _api.deprecate_privatize_attribute("3.7") - def _validate_grabframe_kwargs(savefig_kwargs): if mpl.rcParams['savefig.bbox'] == 'tight': diff --git a/lib/matplotlib/animation.pyi b/lib/matplotlib/animation.pyi index de1b9926afd6..56c27a465b7f 100644 --- a/lib/matplotlib/animation.pyi +++ b/lib/matplotlib/animation.pyi @@ -188,7 +188,6 @@ class Animation: def resume(self) -> None: ... class TimedAnimation(Animation): - repeat: bool def __init__( self, fig: Figure, @@ -204,7 +203,6 @@ class ArtistAnimation(TimedAnimation): def __init__(self, fig: Figure, artists: Sequence[Collection[Artist]], *args, **kwargs) -> None: ... class FuncAnimation(TimedAnimation): - save_count: int def __init__( self, fig: Figure,