ion/ioff

matplotlib.pyplot.ion()

でインターラクティブモードとなって,描画コマンドを出すごとに図が描かれる.

matplotlib.pyplot.ioff()

でインターラクティブもードが終了する.

matplotlib.pyplot.ion()

starts an interactive mode, in which figure is refreshed at every time you enter figure drawing commands.

matplotlib.pyplot.ioff()

ends the interactive mode.