Skip to content

Commit 2bf4392

Browse files
authored
Merge pull request #16532 from timhoffm/doc-save_count
DOC: Document default value of save_count parameter in FuncAnimation
2 parents 7d10cb6 + a0f9781 commit 2bf4392

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/matplotlib/animation.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -1577,8 +1577,10 @@ def init_func() -> iterable_of_artists
15771577
fargs : tuple or None, optional
15781578
Additional arguments to pass to each call to *func*.
15791579
1580-
save_count : int, optional
1581-
The number of values from *frames* to cache.
1580+
save_count : int, default: 100
1581+
Fallback for the number of values from *frames* to cache. This is
1582+
only used if the number of frames cannot be inferred from *frames*,
1583+
i.e. when it's an iterator without length or a generator.
15821584
15831585
interval : int, default: 200
15841586
Delay between frames in milliseconds.

0 commit comments

Comments
 (0)