MathGroup Archive 2007

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

Search the Archive

Example of Dynamic Appearance of Locator in LocatorPane?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg82443] Example of Dynamic Appearance of Locator in LocatorPane?
  • From: "W. Craig Carter" <ccarter at mit.edu>
  • Date: Sat, 20 Oct 2007 05:55:22 -0400 (EDT)

Does anyone have a short example of using Dynamic with 
LocatorPane Option for Appearance?

For example, I am trying to get this:

Manipulate[
  DynamicModule[{pos = {1, 1/2}},
   LocatorPane[Plot[Sin[x], {x, 0, 2 Pi}],
    Appearance -> (*immediate*)
     Dynamic[Graphics[Circle[pos, radius]]]]], {{radius, .2}, 0, 1}]

or this:

Manipulate[
  DynamicModule[{pos = {1, 1/2}},
   LocatorPane[Plot[Sin[x], {x, 0, 2 Pi}],
    Appearance :> (*delayed*)
     Dynamic[Graphics[Circle[pos, radius]]]]], {{radius, .2}, 0, 1}]

to work. I can get the locator to move, but I'd like to get 
it to shrink and use its radius to calcuate other things.


Thanks.

W. Craig Carter



  • Prev by Date: Mathematica Programmer Needed Immediately
  • Next by Date: Re: WebMathematica and 6.0 problems
  • Previous by thread: Mathematica Programmer Needed Immediately
  • Next by thread: Re: Example of Dynamic Appearance of Locator in LocatorPane?