By default Manipulator
produced by Manipulate
with Appearance -> "Open"
option have two rows: on the first row the slider is placed, on the second other controls:
Manipulate[
Row[{Plot[Sin[x (1 + a x)], {x, 0, 6}],
Plot[Evaluate@D[Sin[x (1 + a x)], x], {x, 0, 6}]
}, BaseStyle -> ImageSizeMultipliers -> 2/3],
{a, 0, 2, Appearance -> "Open"}]
How can I get all the controls placed on one row?
Answer
Following suggestions in the comments, here is a way to achieve what I want:
Manipulate[
Row[{
Plot[Sin[x (1 + a x)], {x, 0, 6}],
Plot[Evaluate@D[Sin[x (1 + a x)], x], {x, 0, 6}]},
BaseStyle -> ImageSizeMultipliers -> 2/3],
{a, 0, 2,
Grid[{{
Slider[##, Appearance -> Tiny],
InputField[#, FieldSize -> Tiny],
Animator[##, AnimationRunning -> False,
AppearanceElements -> {"StepLeftButton", "StepRightButton",
"PlayPauseButton", "FasterSlowerButtons", "DirectionButton"}]
}},
Alignment -> {Center, Center}] &}]
Comments
Post a Comment