OK This worked (after modifying by hand matplotlib/pyplot.py to change 
plt.show(block=False) to plt.ion(), possibly updating matplotlib would work):

PyPlot.show()

for k=1:20
    PyPlot.plot([1:10],1+k*[1:10])
    PyPlot.draw()
    PyPlot.pause(0.05)
end


On 20 Aug 2014, at 4:02 am, Steven G. Johnson <stevenj....@gmail.com> wrote:

> 
> 
> On Tuesday, August 19, 2014 11:09:21 AM UTC-4, ggggg wrote:
> You could try adapting this python stack overflow answer.  I've only ever 
> done it with qt4 and the matplotlib api from python, but it is certainly 
> possible.
> 
> http://stackoverflow.com/questions/11874767/real-time-plotting-in-while-loop-with-matplotlib
> 
> The key suggestions seem to be
> Call plt.ion() in order to enable interactive plotting. plt.show(block=False) 
> is no longer available.
> Call plt.show() initially, then update the plot with plt.draw()
> 
> In PyPlot, use pygui(true) to switch to the Python GUI if you are using 
> IJulia. 

Reply via email to