How to dynamically update a plot in a loop in Ipython notebook (within one cell)

后端 未结 6 1500
梦如初夏
梦如初夏 2020-11-28 02:19

Environment: Python 2.7, matplotlib 1.3, IPython notebook 1.1, linux, chrome. The code is in one single input cell, using --pylab=inline

I want to use I

6条回答
  •  Happy的楠姐
    2020-11-28 02:24

    Try to add show() or gcf().show() after the plot() function. These will force the current figure to update (gcf() returns a reference for the current figure).

提交回复
热议问题