Re: Putting controls next to graphics in the Manipulate Display area
- To: mathgroup at smc.vnet.net
- Subject: [mg108329] Re: Putting controls next to graphics in the Manipulate Display area
- From: "Nasser M. Abbasi" <nma at 12000.org>
- Date: Sun, 14 Mar 2010 05:12:44 -0500 (EST)
> > The controls do not all have to be in the same area. > > f[a_, b_, x_] = (x - a) (x - b); > > Manipulate[Plot[f[a, b, x], {x, -5, 5}, > PlotRange -> {-25, 50}, > Epilog -> {Red, > Line[{{x0, -25}, {x0, 50}}], > Line[{{-5, y0}, {5, y0}}]}], > {{a, 2}, -5, 5, .1, > Appearance -> "Labeled"}, > {{b, -2}, -5, 5, .1, > Appearance -> "Labeled"}, > {{x0, 0, "x"}, -5, 5, .1, > Appearance -> "Labeled"}, > {{y0, 0, "y"}, -25, 50, 1, > Appearance -> "Labeled", > ControlType -> VerticalSlider}, > ControlPlacement -> > {Top, Top, Bottom, Left}] > > > Bob Hanlon > Thanks Bob, Yes, one can do that, I know, but that is not what I meant. As I said, when having one plot, i.e. one object, as in your example, then it is not much of an issue. But if one has more than one object being displayed, and some controls are meant to affect one object and others to affect another, then it would be better to be able to locate the controls next to the object. Here is a diagram I just made to help explain what I meant. http://12000.org/tmp/031210_diagram/example.png --Nasser