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