Julia

Multiple dispatch

Author

David Gómez-Castro

Plots.jl

Tutorial básico

Creando animaciones

using Plots 
anim = @animate for n=1:20
    plot( x-> sin(n*x) , label="")
end;

gif(anim, "animation.gif",  fps = 30)

mp4(anim, "video.mp4",  fps = 30)

En un notebook se puede hacer

using Plots
@gif for n=1:20
    plot( x-> sin(n*x) , label="" )
end
[ Info: Saved animation to /Users/david/Library/Mobile Documents/com~apple~CloudDocs/Universidad/Docencia/Julia Compumates/Github/04-PaquetesHabituales/tmp.gif