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

Skip to content

Commit 301660d

Browse files
committed
Improve docstring of draw_idle()
1 parent 025e4f9 commit 301660d

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+
Trigger `.draw` if the backend is not already busy with drawing.
1897+
1898+
This function can be used instead of `.draw` to prevent unnecessary
1899+
multiple renderings.
1900+
1901+
Note
1902+
----
1903+
Backends may choose to override the behavior 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)