Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 38ae531

Browse files
committed
Document that TimedAnimation should not be used
This copies the text from `Animation`, but also puts both in a warning box. Fixes #30831
1 parent 471e079 commit 38ae531

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

lib/matplotlib/animation.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -853,10 +853,7 @@ def finish(self):
853853

854854
class Animation:
855855
"""
856-
A base class for Animations.
857-
858-
This class is not usable as is, and should be subclassed to provide needed
859-
behavior.
856+
Abstract base class for Animations.
860857
861858
.. note::
862859
@@ -1425,6 +1422,11 @@ class TimedAnimation(Animation):
14251422
14261423
A new frame is drawn every *interval* milliseconds.
14271424
1425+
.. warning::
1426+
1427+
This class is not usable as is, and should be subclassed to provide needed
1428+
behavior.
1429+
14281430
.. note::
14291431
14301432
You must store the created Animation in a variable that lives as long

0 commit comments

Comments
 (0)