Wolfram: Animation
Interactive Manipulation
Manipulate-
creates a interactive object, where variables can be changed via slider.
it returns a
DynamicModuleobject.Manipulate[ Plot[Sin[x t], {x, 0, 2 Pi}, PlotRange->{{0, 2 Pi}, {-1, 1}}], {t, 1, 3}]
wl sine animation 2024-06-28
Animation
Animate-
same as
Manipulate, but automatically animate it.xx = Animate[ Plot[Sin[x t], {x, 0, 2 Pi}, PlotRange->{{0, 2 Pi}, {-1, 1}}], {t, 1, 3}] (* export as a movie *) Export[ "xx.mp4", xx ]
ListAnimate-
Generate an animation from a list of typically graphics object.
xplots = Table[Plot[Sin[x t], {x, 0, 2 Pi}, PlotRange -> {{0, 2 Pi}, {-1, 1}}], {t, 1, 3, 0.2}] ListAnimate[ xplots ]
Export animation to mp4 or gif
(* list of graphics *) xgraphicsList = Table[Plot[Sin[x t], {x, 0, 2 Pi}, PlotRange -> {{0, 2 Pi}, {-1, 1}}], {t, 1, 3, 0.2}] (* export as a movie *) Export[ "xx.mp4", xgraphicsList ] (* export as gif *) Export[ "xx.gif", xgraphicsList ]