matplotlib.pyplot.ion
- matplotlib.pyplot.ion()
Enable interactive mode.
See
pyplot.isinteractivefor more details.
Enable interactive mode.
See pyplot.isinteractive for more details.
Disable interactive mode.
Whether interactive mode is enabled.
Show all figures (and maybe block).
Show all figures, and block for a time.
For a temporary change, this can be used as a context manager:
# if interactive mode is off
# then figures will not be shown on creation
plt.ioff()
# This figure will not be shown immediately
fig = plt.figure()
with plt.ion():
# interactive mode will be on
# figures will automatically be shown
fig2 = plt.figure()
# ...
To enable optional usage as a context manager, this function returns a context manager object, which is not intended to be stored or accessed by the user.