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 a4f932e commit ead0e8bCopy full SHA for ead0e8b
lib/matplotlib/animation.py
@@ -1638,6 +1638,16 @@ def iter_frames(frames=frames):
1638
f"You passed in an explicit {save_count=} which is being "
1639
f"ignored in favor of {frames=}."
1640
)
1641
+ if self._save_count is None and cache_frame_data:
1642
+ _api.warn_external(
1643
+ f"{frames=!r} which we can infer the length of, "
1644
+ "did not pass an explicit *save_count* "
1645
+ f"and passed {cache_frame_data=}. To avoid a possibly "
1646
+ "unbounded cache, frame data caching has been disabled. "
1647
+ "To suppress this warning either pass "
1648
+ "`cache_frame_data=False` or `save_count=MAX_FRAMES`."
1649
+ )
1650
+ cache_frame_data = False
1651
1652
self._cache_frame_data = cache_frame_data
1653
0 commit comments