MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / draw_idle

Method draw_idle

lib/matplotlib/backend_bases.py:1974–1989  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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):

Callers 15

_on_moveMethod · 0.45
enableMethod · 0.45
disableMethod · 0.45
update_viewMethod · 0.45
scroll_zoomMethod · 0.45
_cancel_actionMethod · 0.45
_cancel_actionMethod · 0.45
_mouse_moveMethod · 0.45
_post_drawMethod · 0.45
_init_drawMethod · 0.45
_set_limMethod · 0.45

Calls 2

_idle_draw_cntxMethod · 0.95
drawMethod · 0.95

Tested by 1