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

Method _pre_draw

lib/matplotlib/animation.py:1546–1554  ·  view source on GitHub ↗

Clears artists from the last frame.

(self, framedata, blit)

Source from the content-addressed store, hash-verified

1544 fig.canvas.draw_idle()
1545
1546 def _pre_draw(self, framedata, blit):
1547 """Clears artists from the last frame."""
1548 if blit:
1549 # Let blit handle clearing
1550 self._blit_clear(self._drawn_artists)
1551 else:
1552 # Otherwise, make all the artists from the previous frame invisible
1553 for artist in self._drawn_artists:
1554 artist.set_visible(False)
1555
1556 def _draw_frame(self, artists):
1557 # Save the artists that were passed in as framedata for the other

Callers

nothing calls this directly

Calls 2

_blit_clearMethod · 0.80
set_visibleMethod · 0.45

Tested by

no test coverage detected