Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0ca0c40

Browse files
authored
Merge pull request matplotlib#12521 from timhoffm/doc-draw-idle
Improve docstring of draw_idle()
2 parents e231439 + 27c8ee1 commit 0ca0c40

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

lib/matplotlib/backend_bases.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1892,7 +1892,16 @@ def draw(self, *args, **kwargs):
18921892

18931893
def draw_idle(self, *args, **kwargs):
18941894
"""
1895-
:meth:`draw` only if idle; defaults to draw but backends can override
1895+
Request a widget redraw once control returns to the GUI event loop.
1896+
1897+
Even if multiple calls to `draw_idle` occur before control returns
1898+
to the GUI event loop, the figure will only be rendered once.
1899+
1900+
Note
1901+
----
1902+
Backends may choose to override the method and implement their own
1903+
strategy to prevent multiple renderings.
1904+
18961905
"""
18971906
if not self._is_idle_drawing:
18981907
with self._idle_draw_cntx():

0 commit comments

Comments
 (0)