MathGroup Archive 2010

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: How to center the position of a control in the Manipulate pane?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg110397] Re: How to center the position of a control in the Manipulate pane?
  • From: sibir <martin.rommel at gmail.com>
  • Date: Wed, 16 Jun 2010 05:40:33 -0400 (EDT)
  • References: <huvk77$rt4$1@smc.vnet.net> <hv23sv$5g6$1@smc.vnet.net>

Thanks to Bob Hanlon for suggesting:

Column[{
 Row[{
   "a ", Slider[Dynamic[a], {1, 5, 1}],
   , a = 4; Dynamic[a]}],
 Row[{
   "b ", Slider[Dynamic[b], {1, 5, 1}],
   , b = 2; Dynamic[b]}],
 Dynamic[Plot[a + b*x, {x, 0, 1},
   PlotRange -> {0, 10},
   ImageSize -> 360]]},
 Center]

It centers the control fine, but does not use Manipulate.
If I rewrite the exapmle with Manipuate as

Thank you, but I was using Manipulate?
here si the equivalent:

Manipulate[
 Plot[a+b*x,{x,0,1},PlotRange->{0,10},ImageSize->360],
 {{a,4},1,5,1,Appearance->"Labeled"},
 {{b,2},1,5,1,Appearance->"Labeled"},
 AppearanceElements->None,
 Alignment -> Center]

The contro lis flush left again, the option Alignment acts only in the
white Display area and not on the controls.
The option ControlPlacement appears somewhat limited and has no Center
setting.

Options[Manipulate] shows that there is also ControlAlignment, but I
cannot find any documentation for that option (the Documentation
Center links to RandomChoice!?!).
What are defined settings for ControlAlignment?




  • Prev by Date: Re: Answer
  • Next by Date: Re: Simplification question
  • Previous by thread: Re: How to center the position of a control in the Manipulate pane?
  • Next by thread: Re: How to center the position of a control in the Manipulate pane?