Render the figure and update the macosx canvas.
(self)
| 47 | self._timers = set() |
| 48 | |
| 49 | def draw(self): |
| 50 | """Render the figure and update the macosx canvas.""" |
| 51 | # The renderer draw is done here; delaying causes problems with code |
| 52 | # that uses the result of the draw() to update plot elements. |
| 53 | if self._is_drawing: |
| 54 | return |
| 55 | with cbook._setattr_cm(self, _is_drawing=True): |
| 56 | super().draw() |
| 57 | self.update() |
| 58 | |
| 59 | def draw_idle(self): |
| 60 | # docstring inherited |