Request a widget redraw once control returns to the GUI event loop. Even if multiple calls to `draw_idle` occur before control returns to the GUI event loop, the figure will only be rendered once. Notes ----- Backends may choose to override the meth
(self, *args, **kwargs)
| 1972 | """ |
| 1973 | |
| 1974 | def draw_idle(self, *args, **kwargs): |
| 1975 | """ |
| 1976 | Request a widget redraw once control returns to the GUI event loop. |
| 1977 | |
| 1978 | Even if multiple calls to `draw_idle` occur before control returns |
| 1979 | to the GUI event loop, the figure will only be rendered once. |
| 1980 | |
| 1981 | Notes |
| 1982 | ----- |
| 1983 | Backends may choose to override the method and implement their own |
| 1984 | strategy to prevent multiple renderings. |
| 1985 | |
| 1986 | """ |
| 1987 | if not self._is_idle_drawing: |
| 1988 | with self._idle_draw_cntx(): |
| 1989 | self.draw(*args, **kwargs) |
| 1990 | |
| 1991 | @property |
| 1992 | def device_pixel_ratio(self): |