I want to create a simple gif animation using Plots.jl
but I have a gif that also changes the axis and the legend every time.
using Plots
import Distributions: Uniform
plt = plot(legend=false)
title!(plt, "Network")
xlabel!(plt, "X (meters)")
ylabel!(plt, "Y (meters)")
v_t = 0:0.1:100
xnodes = rand(Uniform(0, 10), 5, length(v_t))
ynodes = rand(Uniform(0, 10), 5, length(v_t))
anim = @animate for ti = 1:length(v_t)
t = v_t[ti]
scatter((xnodes[:, ti], ynodes[:, ti]), mc = :red, ms = 4)
end
gif(anim, "net.gif")