Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit301660d

Browse files
committed
Improve docstring of draw_idle()
1 parent025e4f9 commit301660d

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
defdraw_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
ifnotself._is_idle_drawing:
18991908
withself._idle_draw_cntx():

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp