(self, artists)
| 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 |
no test coverage detected