Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #6939

Locator in nested Manipulates

From Chris Young <cy56@comcast.net>
Newsgroups comp.soft-sys.math.mathematica
Subject Locator in nested Manipulates
Date 2011-12-05 10:26 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <jbi69h$50e$1@smc.vnet.net> (permalink)

Show all headers | View raw


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 comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread


Thread

Locator in nested Manipulates Chris Young <cy56@comcast.net> - 2011-12-05 10:26 +0000

csiph-web