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.
1 parent 96fcb93 commit dabd667Copy full SHA for dabd667
1 file changed
lib/matplotlib/animation.py
@@ -1668,6 +1668,16 @@ def iter_frames(frames=frames):
1668
f"You passed in an explicit {save_count=} which is being "
1669
f"ignored in favor of {frames=}."
1670
)
1671
+ if self._save_count is None and cache_frame_data:
1672
+ _api.warn_external(
1673
+ f"{frames=!r} which we can infer the length of, "
1674
+ "did not pass an explicit *save_count* "
1675
+ f"and passed {cache_frame_data=}. To avoid a possibly "
1676
+ "unbounded cache, frame data caching has been disabled. "
1677
+ "To suppress this warning either pass "
1678
+ "`cache_frame_data=False` or `save_count=MAX_FRAMES`."
1679
+ )
1680
+ cache_frame_data = False
1681
1682
self._cache_frame_data = cache_frame_data
1683
0 commit comments