1
$\begingroup$

How do I make several different Manipulate controls appear on a single line? I currently have both a Slider and an Animator controlling different variables and they appear one underneath the other. Is there a way to make them appear on the same line?

I've read this question, but that deals with control elements of a single variable. How do I do the same for the different control elements of two or more variables?!

Two variable controls appearing on different lines

$\endgroup$
6
$\begingroup$

You might use Row. For example:

Manipulate[{u, v}, Row[{Control[{u, 0, 6}], Control[{v, 10, 20}]}, Spacer[10]]]

enter image description here

$\endgroup$
  • 1
    $\begingroup$ Related youtube.com/watch?v=fFqi1mkuzJc $\endgroup$ – Dr. belisarius Apr 2 '14 at 4:22
  • $\begingroup$ @belisarius: I lol'd... $\endgroup$ – ciao Apr 2 '14 at 6:02
  • $\begingroup$ Fantastic, thank you very much! $\endgroup$ – Aron Apr 2 '14 at 9:13
  • $\begingroup$ @Aron: glad you find it useful. Take a look at the advanced manipulate section here, info on this kind of thing, and extensions. $\endgroup$ – ciao Apr 2 '14 at 9:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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