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: [mg120716] Re: Can a Locator be Made to Track a Curve?
  • From: Heike Gramberg <heike.gramberg at gmail.com>
  • Date: Sun, 7 Aug 2011 06:14:52 -0400 (EDT)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.com
  • References: <201108060612.CAA13010@smc.vnet.net>

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

On 6 Aug 2011, at 08:12, Gregory Lypny wrote:

> Hello everyone,
> 
> Can a locator be constrained so that it tracks a curve?
> 
> Regards,
> 
> Gregory
> 





  • Prev by Date: Mathgroup on Google Groups
  • Next by Date: Re: Can a Locator be Made to Track a Curve?
  • Previous by thread: Re: Can a Locator be Made to Track a Curve?
  • Next by thread: Re: Can a Locator be Made to Track a Curve?