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

Commitd69e9ee

Browse files
committed
Use explicit kwarg for plt.show()
Fix block
1 parentdd5f241 commitd69e9ee

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

‎lib/matplotlib/pyplot.py

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -231,9 +231,10 @@ def switch_backend(newbackend):
231231
_backend_mod,new_figure_manager,draw_if_interactive,_show=pylab_setup()
232232

233233

234-
defshow(*args,**kw):
234+
defshow(block=True):
235235
"""
236236
Display a figure.
237+
237238
When running in ipython with its pylab mode, display all
238239
figures and return to the ipython prompt.
239240
@@ -243,12 +244,14 @@ def show(*args, **kw):
243244
non-interactive to interactive mode (not recommended). In
244245
that case it displays the figures but does not block.
245246
246-
A single experimental keyword argument, *block*, may be
247-
set to True or False to override the blocking behavior
248-
described above.
247+
Parameters
248+
----------
249+
block : bool, optional
250+
Experimental; set to ``False`` to override the blocking
251+
behavior described above.
249252
"""
250253
global_show
251-
return_show(*args,**kw)
254+
return_show(block=block)
252255

253256

254257
defisinteractive():

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp