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

Commit0ca0c40

Browse files
authored
Merge pull request#12521 from timhoffm/doc-draw-idle
Improve docstring of draw_idle()
2 parentse231439 +27c8ee1 commit0ca0c40

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

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp