(self)
| 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 |
| 1241 | self._blit_cache = dict() |
| 1242 | self._drawn_artists = [] |
| 1243 | # _post_draw needs to be called first to initialize the renderer |
| 1244 | self._post_draw(None, self._blit) |
| 1245 | # Then we need to clear the Frame for the initial draw |
| 1246 | # This is typically handled in _on_resize because QT and Tk |
| 1247 | # emit a resize event on launch, but the macosx backend does not, |
| 1248 | # thus we force it here for everyone for consistency |
| 1249 | self._init_draw() |
| 1250 | # Connect to future resize events |
| 1251 | self._resize_id = self._fig.canvas.mpl_connect('resize_event', |
| 1252 | self._on_resize) |
| 1253 | |
| 1254 | def _on_resize(self, event): |
| 1255 | # On resize, we need to disable the resize event handling so we don't |
no test coverage detected