Problems with the scale 3d on animations

using Plots 
gr()

anim = Animation()
for n in range(0,2π,length=10)
    t=0:0.1:n
    x=cos.(t)
    y=sin.(t)
    z=t
    scatter(x,y,z,lw=1,markersize = 2,color=:blue,xlabel="x",ylabel="y",zlabel="z",legend=false,size=(400,400),
            aspect_ratio=:equal)
    zlims!(0,7)
    xlims!(-2,2)
    ylims!(-2,2)
    frame(anim)
end
gif(anim,"TesteGif2.gif",fps=5)

TesteGif2
I had to make the marker size 2 to make it easier to see, though.

1 Like