matplotlib.pyplot.isinteractive

matplotlib.pyplot.isinteractive() [source]

Return if pyplot is in "interactive mode" or not.

If in interactive mode then:

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

If not in interactive mode then:

  • 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 windows (and maybe block)
pause
show windows, run GUI event loop, and block for a time

Examples using matplotlib.pyplot.isinteractive

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