MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / _blit_clear

Method _blit_clear

lib/matplotlib/animation.py:1224–1237  ·  view source on GitHub ↗
(self, artists)

Source from the content-addressed store, hash-verified

1222 ax.figure.canvas.blit(ax.bbox)
1223
1224 def _blit_clear(self, artists):
1225 # Get a list of the Axes that need clearing from the artists that
1226 # have been drawn. Grab the appropriate saved background from the
1227 # cache and restore.
1228 axes = {a.axes for a in artists}
1229 for ax in axes:
1230 try:
1231 view, bg = self._blit_cache[ax]
1232 except KeyError:
1233 continue
1234 if ax._get_view() == view:
1235 ax.figure.canvas.restore_region(bg)
1236 else:
1237 self._blit_cache.pop(ax)
1238
1239 def _setup_blit(self):
1240 # Setting up the blit requires: a cache of the background for the Axes

Callers 2

_pre_drawMethod · 0.95
_pre_drawMethod · 0.80

Calls 3

_get_viewMethod · 0.45
restore_regionMethod · 0.45
popMethod · 0.45

Tested by

no test coverage detected