matplotlib.pyplot.ion #
- matplotlib.pyplot. ion ( ) [fuente] #
Activa el modo interactivo.
Ver
pyplot.isinteractivepara más detalles.Ver también
ioffDeshabilitar el modo interactivo.
isinteractiveSi el modo interactivo está habilitado.
showMostrar todas las figuras (y tal vez bloquear).
pauseMuestre 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.