Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
save_count
1 parent ec60128 commit 96fcb93Copy full SHA for 96fcb93
1 file changed
lib/matplotlib/animation.py
@@ -1654,9 +1654,20 @@ def iter_frames(frames=frames):
1654
self._iter_gen = lambda: iter(frames)
1655
if hasattr(frames, '__len__'):
1656
self._save_count = len(frames)
1657
+ if save_count is not None:
1658
+ _api.warn_external(
1659
+ f"You passed in an explicit {save_count=} "
1660
+ "which is being ignored in favor of "
1661
+ f"{len(frames)=}."
1662
+ )
1663
else:
1664
self._iter_gen = lambda: iter(range(frames))
1665
self._save_count = frames
1666
1667
1668
+ f"You passed in an explicit {save_count=} which is being "
1669
+ f"ignored in favor of {frames=}."
1670
1671
1672
self._cache_frame_data = cache_frame_data
1673
0 commit comments