MathGroup Archive 2011

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

Search the Archive

Re: Can a Locator be Made to Track a Curve?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg120728] Re: Can a Locator be Made to Track a Curve?
  • From: Gregory Lypny <gregory.lypny at videotron.ca>
  • Date: Sun, 7 Aug 2011 06:17:11 -0400 (EDT)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.com
  • References: <201108060612.CAA13010@smc.vnet.net>

Good stuff.  Thank you, Heike.

Gregory


On Sat, Aug 6, 2011, at 6:56 AM, Heike Gramberg wrote:

> You could do something like
> 
> f[x_] := Sin[x];
> pt = {0, 0};
> LocatorPane[Dynamic[pt, (pt[[1]] = #[[1]]; pt[[2]] = f[#[[1]]]) &], 
> Plot[Sin[x], {x, 0, 2 Pi}]]
> 
> Heike



  • Prev by Date: Getting TraditionalForm to put in a multiplication sign.
  • Next by Date: Mathgroup on Google Groups
  • Previous by thread: Can a Locator be Made to Track a Curve?
  • Next by thread: Re: Can a Locator be Made to Track a Curve?