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

Method update

galleries/users_explain/animations/blitting.py:181–196  ·  view source on GitHub ↗

Update the screen with animated artists.

(self)

Source from the content-addressed store, hash-verified

179 fig.draw_artist(a)
180
181 def update(self):
182 """Update the screen with animated artists."""
183 cv = self.canvas
184 fig = cv.figure
185 # paranoia in case we missed the draw event,
186 if self._bg is None:
187 self.on_draw(None)
188 else:
189 # restore the background
190 cv.restore_region(self._bg)
191 # draw all of the animated artists
192 self._draw_animated()
193 # update the GUI state
194 cv.blit(fig.bbox)
195 # let the GUI event loop process anything it has to do
196 cv.flush_events()
197
198
199# %%

Callers 2

colormaps.pyFile · 0.45
blitting.pyFile · 0.45

Calls 5

on_drawMethod · 0.95
_draw_animatedMethod · 0.95
restore_regionMethod · 0.45
blitMethod · 0.45
flush_eventsMethod · 0.45

Tested by

no test coverage detected