I could not find it, but apologies if this has previously been discussed.

I am interested in outputting numerical results on the fly - not in 
generating movie files. (I have found some nice examples on how to do the 
latter.) The following code snippet, run in IJulia opens an external plot 
window and then displays the animation I want to see.

using PyPlot
pygui(true)
x = linspace(0,1,100)
PyPlot.hold(false)
for t = -1:.1:1
    plot(x, t*(1-x).*x)
    axis([0,1, -.3, .3])
    PyPlot.draw()
end

But if I change to pygui(false)  to see the plots within IJulia, then I 
only get the final graph. Can it be done? What am I missing?

(Strangly, I think I did have it working before, but somehow broke it and 
cannot figure out again what I did.)

Many thanks,
   Christoph


Reply via email to