How to show the animation control by default

落爺英雄遲暮 提交于 2019-12-05 05:31:25
acl

For example, Manipulator[Dynamic[x], {0, 2}, Appearance \[Rule] "Open"].

Can you give more details on what you are trying to do?

EDIT: Does this

Manipulate[
  Plot[Sin[a x + b], {x, 0, 6}],
   {a, 1, 4, Appearance \[Rule] "Open"}, {b, 0, 10, Appearance \[Rule] "Open"}]

do what you want?

Simon

Control is a magical command which guesses the type of controller you want from the arguments you give it. The default one you produced with Control[{x,0,1}] is actually a Manipulator - to have it open from the start you want

Manipulator[x, {0, 1}, Appearance -> "Open"]

Of course x should normally by a Dynamic object.

Another option, if you really want to have a control to simply animate something, is to use

Animator[Dynamic[x], {0, 1}, (*AnimationRunning -> False*)]

where you can uncomment the option if you don't want the animation running when the output is created.


Aside: I had completely misread what acl said in his answer - and it turned out to be the same as what I ended up saing. I should probably just move my comments to a comment in his answer...

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!