OK, that (sort of) works, thanks. It's strange - I don't need to specify a 'pause', the video simply runs with lag between frames, probably caused by the image processing. However, this lag is unpredicable (it's larger for more complex plots), and specifying some 'pause' would be great (pause works in the REPL, but not in IJulia).
Thanks for the help though. On Saturday, 20 December 2014 16:18:10 UTC+10, Christoph Ortner wrote: > > 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 > >
