Need help animating a plot

Is this what you’re after?

using Plots
vals = rand(100)
@gif for i in eachindex(vals)
    plot(vals[1:i])
end
2 Likes