Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #6939 > unrolled thread
| Started by | Chris Young <cy56@comcast.net> |
|---|---|
| First post | 2011-12-05 10:26 +0000 |
| Last post | 2011-12-05 10:26 +0000 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.soft-sys.math.mathematica
Locator in nested Manipulates Chris Young <cy56@comcast.net> - 2011-12-05 10:26 +0000
| From | Chris Young <cy56@comcast.net> |
|---|---|
| Date | 2011-12-05 10:26 +0000 |
| Subject | Locator in nested Manipulates |
| Message-ID | <jbi69h$50e$1@smc.vnet.net> |
I was hoping that I could add a Locator control to the original
Manipulator pane by using another enclosing Manipulator, but the p
Locator is restricted to a small corner outside of the original pane.
Taking the p control out of original contourPlot routine
contourPlot[f_] :=
Manipulate[
ContourPlot[
f,
{x, -5, 5}, {y, -4, 4},
Contours -> contours,
PlotPoints -> plotPts,
MaxRecursion -> maxRecurs,
Axes -> True,
ImageSize -> {300, 4/5 300},
AspectRatio -> 4/5
],
{{contours, 5}, 0, 80, 5},
{{plotPts, 20}, 10, 80, 5},
{{maxRecurs, 1}, 1, 10, 1}
]
Manipulate[
contourPlot[
Arg @ ((x + I y) - (p[[1]] + p[[2]] I)) ((x + I y) + (p[[1]] +
p[[2]] I))],
{{p, {1, 1}}, Locator}
]
Back to top | Article view | comp.soft-sys.math.mathematica
csiph-web