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

Method _start

lib/matplotlib/animation.py:924–937  ·  view source on GitHub ↗

Starts interactive animation. Adds the draw frame command to the GUI handler, calls show to start the event loop.

(self, *args)

Source from the content-addressed store, hash-verified

922 )
923
924 def _start(self, *args):
925 """
926 Starts interactive animation. Adds the draw frame command to the GUI
927 handler, calls show to start the event loop.
928 """
929 # Do not start the event source if saving() it.
930 if self._fig.canvas.is_saving():
931 return
932 # First disconnect our draw event handler
933 self._fig.canvas.mpl_disconnect(self._first_draw_id)
934 # Now do any initial draw
935 self._init_draw()
936 # Actually start the event_source.
937 self.event_source.start()
938
939 def _stop(self, *args):
940 # On stop we disconnect all of our events.

Callers 2

test_exhausted_animationFunction · 0.80
test_no_frame_warningFunction · 0.80

Calls 4

_init_drawMethod · 0.95
is_savingMethod · 0.80
mpl_disconnectMethod · 0.80
startMethod · 0.45

Tested by 2

test_exhausted_animationFunction · 0.64
test_no_frame_warningFunction · 0.64