Thanks for all the suggestions.  I did the command below in the end, which 
should do for now.  I use PyPlot for the plot commands.  The only issue is that 
it's a bit slow to export.



function tomovie(v::Array)
    tm=string(time_ns()) 
    dr="/tmp/" * tm * "mov"

    mkdir(dr)

    for k=1:length(v)
        plot(v[k])
        savefig(dr * "/" * string(k) * ".png")    
        clf()
    end

    run(`ffmpeg -r 25 -i $dr/%d.png $dr/out.mpg`)
    run(`open $dr/out.mpg`)
end

On 15 Apr 2014, at 6:09 pm, Fabian Gans <[email protected]> wrote:

> Another possibilty would be to directly call the ffmpeg C interface, which is 
> quite well documented. Otherwise, if you want to use matplotlib, did you have 
> a look at this issue: https://github.com/JuliaLang/IJulia.jl/issues/107
> 
> Fabian
> 
> On Monday, April 14, 2014 5:41:17 PM UTC+2, Steven G. Johnson wrote:
> 
> 
> On Sunday, April 13, 2014 9:30:36 PM UTC-4, Sheehan Olver wrote:
>       The pyplot gui command didn't work for me (and pyplot doesn't work from 
> the command line).  Maybe I just need to update my matplotlib.
> 
> 
> Perhaps you are using a Mac, and don't have Matplotlib with a working Qt 
> graphics backend?  (See the PyPlot installation instructions.) 

Reply via email to