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

Method _init_draw

lib/matplotlib/animation.py:1530–1544  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1528 super().__init__(fig, *args, **kwargs)
1529
1530 def _init_draw(self):
1531 super()._init_draw()
1532 # Make all the artists involved in *any* frame invisible
1533 figs = set()
1534 for f in self.new_frame_seq():
1535 for artist in f:
1536 artist.set_visible(False)
1537 artist.set_animated(self._blit)
1538 # Assemble a list of unique figures that need flushing
1539 if artist.get_figure() not in figs:
1540 figs.add(artist.get_figure())
1541
1542 # Flush the needed figures
1543 for fig in figs:
1544 fig.canvas.draw_idle()
1545
1546 def _pre_draw(self, framedata, blit):
1547 """Clears artists from the last frame."""

Callers

nothing calls this directly

Calls 7

_init_drawMethod · 0.45
new_frame_seqMethod · 0.45
set_visibleMethod · 0.45
set_animatedMethod · 0.45
get_figureMethod · 0.45
addMethod · 0.45
draw_idleMethod · 0.45

Tested by

no test coverage detected