8000 DOC: Explain how to start the mainloop after show(block=False) · matplotlib/matplotlib@68cad54 · GitHub
[go: up one dir, main page]

Skip to content

Commit 68cad54

Browse files
committed
DOC: Explain how to start the mainloop after show(block=False)
1 parent b8ee229 commit 68cad54

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/matplotlib/pyplot.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -583,7 +583,10 @@ def show(*args, **kwargs) -> None:
583583
584584
If `False` ensure that all figure windows are displayed and return
585585
immediately. In this case, you are responsible for ensuring
586-
that the event loop is running to have responsive figures.
586+
that the event loop is running to have responsive figures; in the
587+
simplest form by calling ``fig.canvas.manager.mainloop()`` which is
588+
what a blocking show is doing internally. Note that the GUI mainloop
589+
itself is blocking.
587590
588591
Defaults to True in non-interactive mode and to False in interactive
589592
mode (see `.pyplot.isinteractive`).

0 commit comments

Comments
 (0)
0