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

Skip to content

Commit 27c8ee1

Browse files
committed
Improve docstring of draw_idle()
1 parent 025e4f9 commit 27c8ee1

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
@@ -1893,7 +1893,16 @@ def draw(self, *args, **kwargs):
18931893

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

0 commit comments

Comments
 (0)