Update the screen with animated artists.
(self)
| 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 | # %% |
no test coverage detected