matplotlib.pyplot.ioff #
- matplotlib.pyplot. ioff ( ) [fonte] #
Desative o modo interativo.
Consulte
pyplot.isinteractivepara mais detalhes.Veja também
ionAtive o modo interativo.
isinteractiveSe o modo interativo está ativado.
showMostre todas as figuras (e talvez bloqueie).
pauseMostre 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 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() # ...
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.