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$

1 Answer 1

7
$\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$
4
  • 1
    $\begingroup$ Related youtube.com/watch?v=fFqi1mkuzJc $\endgroup$ Commented Apr 2, 2014 at 4:22
  • $\begingroup$ @belisarius: I lol'd... $\endgroup$
    – ciao
    Commented Apr 2, 2014 at 6:02
  • $\begingroup$ Fantastic, thank you very much! $\endgroup$
    – Aron
    Commented Apr 2, 2014 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
    Commented Apr 2, 2014 at 9:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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