matplotlib.pyplot.ioff #
- matplotlib.pyplot。ioff ( ) [来源] #
- 禁用交互模式。 - 有关 - pyplot.isinteractive更多详细信息,请参阅。- 也可以看看 - ion
- 启用交互模式。 
- isinteractive
- 是否启用交互模式。 
- show
- 显示所有数字(可能还有块)。 
- pause
- 显示所有数字,并阻止一段时间。 
 - 笔记 - 对于临时更改,这可以用作上下文管理器: - # 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() # ... - 为了启用作为上下文管理器的可选用法,此函数返回一个 - ExitStack对象,该对象不打算由用户存储或访问。