0
$\begingroup$

I want to make animation smoothly. But when the function is complicated, manipulate cannot show animation smoothly. For example,

Manipulate[
DensityPlot[Sin[n x/y], {x, -2, 2}, {y, -2, 2}, PlotPoints -> ControlActive[150, 150]], {n, 1, 10}
]

I want to .avi file of this animation smoothly. But when we change n, the graph is very rough. How should I export smoothly animation?

I use Mathematica 8.

$\endgroup$
7
  • $\begingroup$ Replace Manipulate with Table and generate a list of images, one for each frame. Then export the list using Export["animation.avi", list]. $\endgroup$
    – C. E.
    Commented Jan 25, 2018 at 5:04
  • $\begingroup$ Thank you very much. I will try it. But how should I control the speed of playing the animation? $\endgroup$
    – Sakurai.JJ
    Commented Jan 25, 2018 at 5:06
  • $\begingroup$ Look up "AVI" in the documentation and it will tell you that there is an option to Export called FrameRate that you can use to control that. The speed of the animation will be a result of the FrameRate and the number of frames. $\endgroup$
    – C. E.
    Commented Jan 25, 2018 at 5:18
  • 1
    $\begingroup$ Rather, the speed of the animation is determined by FrameRate. The length of the animation is the number of frames divided by FrameRate. $\endgroup$
    – user484
    Commented Jan 25, 2018 at 6:03
  • $\begingroup$ Do frame mean number of the table? $\endgroup$
    – Sakurai.JJ
    Commented Jan 25, 2018 at 9:08

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.