Tag Info

New answers tagged

2

For variety, one can do this with ControllerManipulate imgs = Plot[Sin[x + #], {x, 0, 2 Pi}] & /@ Range[0, 2 Pi, Pi/10]; ControllerManipulate[ Show[imgs[[(Pause[0.05]; 1 + Mod[x++, Length@imgs - 0])]]], {x, 0, 1}]


1

I haven't carefully looked over the makeAnimation that is suggested in the comments but it looks like it might be even be more advanced than what you need, it certainly is more advanced that what I had written so here goes a basic version that might help you: animation[frames_, delay_] := Module[{fr = frames}, Dynamic[ Refresh[First[fr = ...


3

Is there a way of creating a 3D animation from the 2D animation? You have misunderstood the whole thing. An animation is simply a series of images that are displayed after one another. If you want a 3D animation, make the frames in 3D. If you want 2D, make the frames in 2D. u[x_, t_] = -(1/2) Cos[x - t]^2 + 1; frames = Table[Plot3D[u[x, t], {x, -2 Pi, ...


4

Simply replace Animate with Table and store the result in a variable. I also edited your time range and suppressed the result with a semi-colon. u[x_, t_] = -(1/2) Cos[x - t]^2 + 1; pics = Table[Plot[u[x, t], {x, -10, 10}, PlotRange -> {0, 1.5}, PlotStyle -> {Red, Thickness[0.005]}], {t, 0, 2 Pi, 2 Pi/50}]; Now, Export: Export["anim.gif", pics] ...


3

The problem Animate returns a Manipulate: Animate[var++, {n, 0, 9, 1}] // InputForm (* Manipulate[ var++, {{n, 1}, 0, 9, 1, AppearanceElements -> {"ProgressSlider", "PlayPauseButton", "FasterSlowerButtons", "DirectionButton"}}, ControlType -> Animator, AppearanceElements -> None, DefaultBaseStyle -> "Animate", DefaultLabelStyle ...


2

Button["Plot",Animate[Plot[k x,{x,0,3},PlotRange->{{0,3},{-8,8}}],{k,-2,2}]//CreatePalette] Reference. Also, updated on PlotRange based on @JohnMcGee's answer.


2

I found the following to give the result that I think you are looking for. I believe that Animate needs a window to run in. Button["Plot", MessageDialog[Animate[Plot[k x, {x, 0, 3}, PlotRange -> {{0, 3}, {-8,8}}], {k, -2, 2}]], Method -> "Queued"] The Method->"Queued" has been discuss in many other threads.


1

The example below shows the effects of forcing a unitary step size in the manipulator in the application you created. The table is filled as expected but there is an uncomfortable lag in the manipulator. I created this example to support the following statements. I think that Manipulator really doesn't need a new option but that programmers need to adjust ...



Top 50 recent answers are included