Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

I suppose that you are doing something like :

import matplotlib.pyplot as plt
myplot = plt.plot(yadda, yadda, yadda)
plt.show(myplot)

The help for plt.show (available by typing plt.show?) states, among other not unintersing things :

Signature:      plt.show(*, block=None)
Docstring:     
   Display all open figures.

   block : bool, 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 .pyplot.isinteractive).

   ion : Enable interactive mode, which shows / updates the figure
   after
      every plotting command, so that calling "show()" is not
      necessary.

   ioff : Disable interactive mode. savefig : Save the figure to an
   image file instead of showing it on screen.

Is that illumination enough ?