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

Method _step

lib/matplotlib/animation.py:1144–1157  ·  view source on GitHub ↗

Handler for getting events. By default, gets the next frame in the sequence and hands the data off to be drawn.

(self, *args)

Source from the content-addressed store, hash-verified

1142 writer.grab_frame(**savefig_kwargs)
1143
1144 def _step(self, *args):
1145 """
1146 Handler for getting events. By default, gets the next frame in the
1147 sequence and hands the data off to be drawn.
1148 """
1149 # Returns True to indicate that the event source should continue to
1150 # call _step, until the frame sequence reaches the end of iteration,
1151 # at which point False will be returned.
1152 try:
1153 framedata = next(self.frame_seq)
1154 self._draw_next_frame(framedata, self._blit)
1155 return True
1156 except StopIteration:
1157 return False
1158
1159 def new_frame_seq(self):
1160 """Return a new sequence of frame information."""

Callers 1

_stepMethod · 0.45

Calls 1

_draw_next_frameMethod · 0.95

Tested by

no test coverage detected