I don't really understand the inner workings, but here is a piece of code 
that works fine for me both in REPL and IJulia.


using PyPlot# plot in an external window since it doesn't work yet in 
IJuliapygui(true)# tell PyPlot that the plot is interactivePyPlot.ion()# . . . 
and that previous plots are overwrittenPyPlot.hold(false)# start time-stepping 
loopfor n = 1:nsteps
    # plot something

    # . . .

    # Then force the draw    PyPlot.draw()end



You can also embed the figure into IJulia, but it is more tedious. A couple of 
people on this list helped me getting these things to run. I have an example 
implemented in

      
http://nbviewer.ipython.org/url/homepages.warwick.ac.uk/staff/C.Ortner/julia/LennardJones.ipynb


I hope this helps.

    Christoph

Reply via email to