Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Can you set the speed at which a Manipulate plays when the play button is clicked?

share|improve this question
up vote 19 down vote accepted

AnimationRate is at least one way to do this, and it can be applied on a per-control basis:

Manipulate[x, {x, 0, 10, AnimationRate -> 1/10, Appearance -> "Open"}]

Manipulate[x, {x, 0, 10, AnimationRate -> 10, Appearance -> "Open"}]
share|improve this answer
    
I couldn't see this option in the online documentation for Manipulate - although it can be easy to miss things. If it isn't there I think it would be a good addition. – cormullion May 16 '12 at 6:20
    
What is the Appearance -> "Open" doing? – becko Jan 28 at 10:03
1  
@becko It allows the play button to be visible without needing to first click the '+' next to the slider. – Brett Champion Jan 28 at 15:27

I presume you are looking for AnimationRate.
Also, if you want smooth motion you should consider RefreshRate.

Manipulate[
 Plot[Sin[x + a], {x, 0, 5 Pi}],
 {a, 0, 2 Pi, ControlType -> Animator, AnimationRate -> 1, RefreshRate -> 60}
]
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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