1
$\begingroup$

I used Animate to create an animation. However, is there a way to set $a$ to a value (say in 1/4 steps, starting at zero), run through the range of $b$ values (say in 1/4 steps), then change $a$ to the next value and run through all the $b$ values and to display both values as the animation is running?

Animate[
  StreamPlot[{-x + a*y + x^2*y , b - x^2 - a*y }, {x, -5, 5}, {y, -5, 5}, 
    ImageSize -> Large], 
  {a, -5, 5}, 
  {b, -5, 5}]  

I want to create a GIF image of the above. When I look at Create Animation, is it saying that you have to pass a list of graphics and use Export to export those as a GIF? Is there no way to use Animate directly to do this?

$\endgroup$
  • 1
    $\begingroup$ Related: (31312), (123679) $\endgroup$ – Michael E2 Dec 19 '16 at 1:19
  • 1
    $\begingroup$ or: 27202 $\endgroup$ – Kuba Dec 19 '16 at 6:54
  • $\begingroup$ @MichaelE2: What a horrible result using MantoGIF. The result has blackouts, is unsteady and is also 150 MB. $\endgroup$ – Moo Dec 20 '16 at 0:16
  • $\begingroup$ I haven't used ManToGIF very much; I have my own way. In this case, I think changing Animate to Table gets you nearly there. Add your own increment to the iterators, and Flatten the result to give to Export. $\endgroup$ – Michael E2 Dec 20 '16 at 1:15
1
$\begingroup$

The simplest way creating the GIF-animation is Export of image list without any Animate. The "DisplayDurations"->xx option can set the time (xx seconds) of demonstration of each frame.

$\endgroup$

Not the answer you're looking for? Browse other questions tagged or ask your own question.