Skip to content

Commit d69e9ee

Browse files
committed
Use explicit kwarg for plt.show()
Fix block
1 parent dd5f241 commit d69e9ee

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

lib/matplotlib/pyplot.py

+8-5
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-
def show(*args, **kw):
234+
def show(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
def isinteractive():

0 commit comments

Comments
 (0)