How to force a Manipulator inside a Manipulate to auto-run?
Clash Royale CLAN TAG#URR8PPP
up vote
2
down vote
favorite
I want to use a slider (not drop-down list) for a list of discreteValues
to do the Manipulate
(I used Sin[x]
below for simplicity, but the actual one is much more complicated). At the same time, I needed to show a function of x next to the slider (below I used x^2
as an example).
Besides, since the output would be used by other notebook, I would use SaveDefinitions -> True
.
discreteValues = 0, 0.2, 0.4, 0.8, 1.6, 2.0, 2.2;
Manipulate[Sin[x],Row[Control[x, discreteValues, Manipulator, AutoAction -> False], Dynamic[x^2]], SaveDefinitions -> True]
By default, the slider won't auto-run. How can I force the slider to auto-run by default?
I tried to simply change Manipulate
to Animate
, but I got the error.
Many thanks!
manipulate dynamic gui-construction animation
add a comment |Â
up vote
2
down vote
favorite
I want to use a slider (not drop-down list) for a list of discreteValues
to do the Manipulate
(I used Sin[x]
below for simplicity, but the actual one is much more complicated). At the same time, I needed to show a function of x next to the slider (below I used x^2
as an example).
Besides, since the output would be used by other notebook, I would use SaveDefinitions -> True
.
discreteValues = 0, 0.2, 0.4, 0.8, 1.6, 2.0, 2.2;
Manipulate[Sin[x],Row[Control[x, discreteValues, Manipulator, AutoAction -> False], Dynamic[x^2]], SaveDefinitions -> True]
By default, the slider won't auto-run. How can I force the slider to auto-run by default?
I tried to simply change Manipulate
to Animate
, but I got the error.
Many thanks!
manipulate dynamic gui-construction animation
add a comment |Â
up vote
2
down vote
favorite
up vote
2
down vote
favorite
I want to use a slider (not drop-down list) for a list of discreteValues
to do the Manipulate
(I used Sin[x]
below for simplicity, but the actual one is much more complicated). At the same time, I needed to show a function of x next to the slider (below I used x^2
as an example).
Besides, since the output would be used by other notebook, I would use SaveDefinitions -> True
.
discreteValues = 0, 0.2, 0.4, 0.8, 1.6, 2.0, 2.2;
Manipulate[Sin[x],Row[Control[x, discreteValues, Manipulator, AutoAction -> False], Dynamic[x^2]], SaveDefinitions -> True]
By default, the slider won't auto-run. How can I force the slider to auto-run by default?
I tried to simply change Manipulate
to Animate
, but I got the error.
Many thanks!
manipulate dynamic gui-construction animation
I want to use a slider (not drop-down list) for a list of discreteValues
to do the Manipulate
(I used Sin[x]
below for simplicity, but the actual one is much more complicated). At the same time, I needed to show a function of x next to the slider (below I used x^2
as an example).
Besides, since the output would be used by other notebook, I would use SaveDefinitions -> True
.
discreteValues = 0, 0.2, 0.4, 0.8, 1.6, 2.0, 2.2;
Manipulate[Sin[x],Row[Control[x, discreteValues, Manipulator, AutoAction -> False], Dynamic[x^2]], SaveDefinitions -> True]
By default, the slider won't auto-run. How can I force the slider to auto-run by default?
I tried to simply change Manipulate
to Animate
, but I got the error.
Many thanks!
manipulate dynamic gui-construction animation
manipulate dynamic gui-construction animation
asked 1 hour ago
H42
1,461111
1,461111
add a comment |Â
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
2
down vote
accepted
Replace Manipulator
with Animator
:
Manipulate[Sin[x],
Row[Control[x, discreteValues, Animator], Dynamic[x^2]],
SaveDefinitions -> True]
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
2
down vote
accepted
Replace Manipulator
with Animator
:
Manipulate[Sin[x],
Row[Control[x, discreteValues, Animator], Dynamic[x^2]],
SaveDefinitions -> True]
add a comment |Â
up vote
2
down vote
accepted
Replace Manipulator
with Animator
:
Manipulate[Sin[x],
Row[Control[x, discreteValues, Animator], Dynamic[x^2]],
SaveDefinitions -> True]
add a comment |Â
up vote
2
down vote
accepted
up vote
2
down vote
accepted
Replace Manipulator
with Animator
:
Manipulate[Sin[x],
Row[Control[x, discreteValues, Animator], Dynamic[x^2]],
SaveDefinitions -> True]
Replace Manipulator
with Animator
:
Manipulate[Sin[x],
Row[Control[x, discreteValues, Animator], Dynamic[x^2]],
SaveDefinitions -> True]
answered 43 mins ago
kglr
162k8187386
162k8187386
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmathematica.stackexchange.com%2fquestions%2f182840%2fhow-to-force-a-manipulator-inside-a-manipulate-to-auto-run%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password