1
$\begingroup$

In this question the solution to make Manipulate's slider longer is to use ControlType->Slider with ImageSize option. But I need to also have it expandable so that I could view and enter the numeric value. I've tried setting ControlType->Manipulator, but for some reason ImageSize stops working in this case.

Here's an example code which works with ControlType->Slider:

Manipulate[Plot[Sin[a x], {x, -3, 3}, ImageSize -> 800, AspectRatio -> 0.2],
    {a, -10, 10, ControlType -> Slider, ImageSize -> 800}]

How do I make the manipulator longer but still retain the controls under + button?

$\endgroup$
2
  • 1
    $\begingroup$ please provide a minimal example to use as starting point. $\endgroup$
    – Nasser
    Commented Nov 28, 2014 at 18:43
  • $\begingroup$ @Nasser, added. $\endgroup$
    – Ruslan
    Commented Nov 28, 2014 at 18:53

1 Answer 1

3
$\begingroup$

But I need to also have it expandable so that I could view and enter the numeric value

Maybe I am missing something, but why use ControlType for? Is this what you mean?

Manipulate[
 Plot[Sin[a x], {x, -3, 3}, ImageSize -> 600, AspectRatio -> 0.2],
 {a, -10, 10, Appearance -> "Labeled", ImageSize -> 600}
 ]

Mathematica graphics

Mathematica graphics

$\endgroup$
2
  • $\begingroup$ You seem to be using version 10. Maybe they've fixed it there, but your code doesn't work for me on version 9. And only specifying ControlType to Slider makes the size correct for me. $\endgroup$
    – Ruslan
    Commented Nov 28, 2014 at 19:49
  • $\begingroup$ @Ruslan yes, I am using V10.01 on windows 7 (time to upgrade then ;) $\endgroup$
    – Nasser
    Commented Nov 28, 2014 at 19:49

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.