matplotlib.pyplot.ion #

matplotlib.pyplot. ion ( ) [fuente] #

Activa el modo interactivo.

Ver pyplot.isinteractivepara más detalles.

Ver también

ioff

Deshabilitar el modo interactivo.

isinteractive

Si el modo interactivo está habilitado.

show

Mostrar todas las figuras (y tal vez bloquear).

pause

Muestre todas las figuras y bloquee por un tiempo.

notas

Para un cambio temporal, esto se puede usar como un administrador de contexto:

# 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()
    # ...

Para habilitar el uso opcional como administrador de contexto, esta función devuelve un ExitStackobjeto, que no está destinado a ser almacenado o accedido por el usuario.