mpl_gui.show#

mpl_gui.show(figs, *, block=None, timeout=0)[source]#

Show the figures and maybe block.

Parameters:
figsList[Figure]

The figures to show. If they do not currently have a GUI aware canvas + manager attached they will be promoted.

blockbool, optional

Whether to wait for all figures to be closed before returning.

If True block and run the GUI main loop until all figure windows are closed.

If False ensure that all figure windows are displayed and return immediately. In this case, you are responsible for ensuring that the event loop is running to have responsive figures.

Defaults to True in non-interactive mode and to False in interactive mode (see is_interactive).