W3cubDocs

/Matplotlib 3.5

matplotlib.pyplot.isinteractive

matplotlib.pyplot.isinteractive()[source]

Return whether plots are updated after every plotting command.

The interactive mode is mainly useful if you build plots from the command line and want to see the effect of each command while you are building the figure.

In interactive mode:

  • newly created figures will be shown immediately;
  • figures will automatically redraw on change;
  • pyplot.show will not block by default.

In non-interactive mode:

  • newly created figures and changes to figures will not be reflected until explicitly asked to be;
  • pyplot.show will block by default.

See also

ion

Enable interactive mode.

ioff

Disable interactive mode.

show

Show all figures (and maybe block).

pause

Show all figures, and block for a time.

© 2012–2021 Matplotlib Development Team. All rights reserved.
Licensed under the Matplotlib License Agreement.
https://matplotlib.org/3.5.1/api/_as_gen/matplotlib.pyplot.isinteractive.html