matplotlib.pyplot.ioff
-
matplotlib.pyplot.ioff()
[source] -
Turn interactive mode off.
See also
-
ion
- enable interactive mode
-
isinteractive
- query current state
-
show
- show windows (and maybe block)
-
pause
- show windows, run GUI event loop, 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 creation plt.ion() # This figure will be shown immediately fig = plt.figure() with plt.ioff(): # interactive mode will be off # figures will not automatically be shown fig2 = plt.figure() # ...
To enable usage as a context manager, this function returns an
_IoffContext
object. The return value is not intended to be stored or accessed by the user. -
Examples using matplotlib.pyplot.ioff
© 2012–2021 Matplotlib Development Team. All rights reserved.
Licensed under the Matplotlib License Agreement.
https://matplotlib.org/3.4.1/api/_as_gen/matplotlib.pyplot.ioff.html