Callback to register with 'draw_event'.
(self, event)
| 146 | self.cid = canvas.mpl_connect("draw_event", self.on_draw) |
| 147 | |
| 148 | def on_draw(self, event): |
| 149 | """Callback to register with 'draw_event'.""" |
| 150 | cv = self.canvas |
| 151 | if event is not None: |
| 152 | if event.canvas != cv: |
| 153 | raise RuntimeError |
| 154 | self._bg = cv.copy_from_bbox(cv.figure.bbox) |
| 155 | self._draw_animated() |
| 156 | |
| 157 | def add_artist(self, art): |
| 158 | """ |
no test coverage detected