@@ -882,6 +882,12 @@ class Animation:
882
882
This class is not usable as is, and should be subclassed to provide needed
883
883
behavior.
884
884
885
+ .. note::
886
+
887
+ You must store the created Animation in a variable that lives as long
888
+ as the animation should run. Otherwise, the Animation object will be
889
+ garbage-collected and the animation stops.
890
+
885
891
Parameters
886
892
----------
887
893
fig : `~matplotlib.figure.Figure`
@@ -1394,6 +1400,12 @@ class TimedAnimation(Animation):
1394
1400
1395
1401
A new frame is drawn every *interval* milliseconds.
1396
1402
1403
+ .. note::
1404
+
1405
+ You must store the created Animation in a variable that lives as long
1406
+ as the animation should run. Otherwise, the Animation object will be
1407
+ garbage-collected and the animation stops.
1408
+
1397
1409
Parameters
1398
1410
----------
1399
1411
fig : `~matplotlib.figure.Figure`
@@ -1462,6 +1474,12 @@ class ArtistAnimation(TimedAnimation):
1462
1474
Before creating an instance, all plotting should have taken place
1463
1475
and the relevant artists saved.
1464
1476
1477
+ .. note::
1478
+
1479
+ You must store the created Animation in a variable that lives as long
1480
+ as the animation should run. Otherwise, the Animation object will be
1481
+ garbage-collected and the animation stops.
1482
+
1465
1483
Parameters
1466
1484
----------
1467
1485
fig : `~matplotlib.figure.Figure`
@@ -1529,6 +1547,12 @@ class FuncAnimation(TimedAnimation):
1529
1547
"""
1530
1548
Makes an animation by repeatedly calling a function *func*.
1531
1549
1550
+ .. note::
1551
+
1552
+ You must store the created Animation in a variable that lives as long
1553
+ as the animation should run. Otherwise, the Animation object will be
1554
+ garbage-collected and the animation stops.
1555
+
1532
1556
Parameters
1533
1557
----------
1534
1558
fig : `~matplotlib.figure.Figure`
0 commit comments