(self, bbox=None)
| 504 | QtCore.QTimer.singleShot(0, self._draw_idle) |
| 505 | |
| 506 | def blit(self, bbox=None): |
| 507 | # docstring inherited |
| 508 | if bbox is None and self.figure: |
| 509 | bbox = self.figure.bbox # Blit the entire canvas if bbox is None. |
| 510 | # repaint uses logical pixels, not physical pixels like the renderer. |
| 511 | l, b, w, h = (int(pt / self.device_pixel_ratio) for pt in bbox.bounds) |
| 512 | t = b + h |
| 513 | self.repaint(l, self.rect().height() - t, w, h) |
| 514 | |
| 515 | def _draw_idle(self): |
| 516 | with self._idle_draw_cntx(): |