matplotlib.pyplot.ion #

matplotlib.pyplot. íon ( ) [fonte] #

Ative o modo interativo.

Consulte pyplot.isinteractivepara mais detalhes.

Veja também

ioff

Desative o modo interativo.

isinteractive

Se o modo interativo está ativado.

show

Mostre todas as figuras (e talvez bloqueie).

pause

Mostre todas as figuras e bloqueie por um tempo.

Notas

Para uma mudança temporária, isso pode ser usado como um gerenciador 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 o uso opcional como um gerenciador de contexto, esta função retorna um ExitStackobjeto, que não deve ser armazenado ou acessado pelo usuário.