Initialize

using Plots
gr()
Plots.GRBackend()

Lines

A simple line plot of the columns.

plot(Plots.fakedata(50, 5), w = 3)

Functions, adding data, and animations

    Plot multiple functions.  You can also put the function first, or use the form `plot(f,
    xmin, xmax)` where f is a Function or AbstractVector{Function}.

Get series data: x, y = plt[i]. Set series data: plt[i] = (x,y). Add to the series with push!/append!.

Easily build animations. (convert or ffmpeg must be available to generate the animation.) Use command gif(anim, filename, fps=15) to save the animation.

p = plot([sin, cos], zeros(0), leg = false)
anim = Animation()
for x = range(0, stop = 10π, length = 100)
    push!(p, x, Float64[sin(x), cos(x)])
    frame(anim)
end