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.
2 parents 74640bb + 03d41e8 commit 9221a55Copy full SHA for 9221a55
1 file changed
lib/matplotlib/animation.py
@@ -1211,6 +1211,11 @@ def _setup_blit(self):
1211
# axes
1212
self._blit_cache = dict()
1213
self._drawn_artists = []
1214
+ for ax in self._fig.axes:
1215
+ ax.callbacks.connect('xlim_changed',
1216
+ lambda ax: self._blit_cache.pop(ax, None))
1217
+ ax.callbacks.connect('ylim_changed',
1218
1219
self._resize_id = self._fig.canvas.mpl_connect('resize_event',
1220
self._handle_resize)
1221
self._post_draw(None, self._blit)
0 commit comments