Julia测试程序

using Plots
# REPL
#using Pkg
#Pkg.add(“Plots”)
anim1=Animation()
x=0:0.1:10
for i=1:length(x)
    p0=plot!(x,sin.(x))
    p1=plot!(p0,x[1:i],sin.(x[1:i]))
    frame(anim1)
end
gif(anim1,“ex1.gif”)