In [1]:
using Plots
gadfly()

# create a plot
n = 10
p = scatter(randn(n), randn(n), size=(500,300))

# make an animation by adding data and saving the frames
anim = Animation()
for i in 1:100
    append!(p, 1, randn(n), randn(n))
    frame(anim)
end
g = gif(anim, fps=50)


INFO: Recompiling stale cache file /home/tom/.julia/lib/v0.4/Plots.ji for module Plots.
[Plots.jl] Initializing backend: gadfly
INFO: Saved animation to /home/tom/.julia/v0.4/Plots/examples/tmp.gif
Out[1]:

In [2]:
g = gif(anim, fps=1)


INFO: Saved animation to /home/tom/.julia/v0.4/Plots/examples/tmp.gif
Out[2]:

In [ ]: