matplotlib.pyplot.ioff#

matplotlib.pyplot.ioff()[source]#

Disable interactive mode.

Seepyplot.isinteractive for more details.

See also

ion

Enable interactive mode.

isinteractive

Whether interactive mode is enabled.

show

Show all figures (and maybe block).

pause

Show all figures, and block for a time.

Notes

For a temporary change, this can be used as a context manager:

# if interactive mode is on# then figures will be shown on creationplt.ion()# This figure will be shown immediatelyfig=plt.figure()withplt.ioff():# interactive mode will be off# figures will not automatically be shownfig2=plt.figure()# ...

To enable optional usage as a context manager, this function returns acontext manager object, which is not intended to be stored oraccessed by the user.

On this page