mpl_gui.ion#
- mpl_gui.ion()[source]#
Enable interactive mode.
See
is_interactive
for more details.See also
ioff
Disable interactive mode.
is_interactive
Whether interactive mode is enabled.
show
Show all figures (and maybe block).
Notes
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 mg.ioff() # This figure will not be shown immediately fig = mg.figure() with mg.ion(): # interactive mode will be on # figures will automatically be shown fig2 = mg.figure() # ...
To enable usage as a context manager, this function returns an
_IonContext
object. The return value is not intended to be stored or accessed by the user.