Re: Can a Locator be Made to Track a Curve?
- To: mathgroup at smc.vnet.net
- Subject: [mg120738] Re: Can a Locator be Made to Track a Curve?
- From: Helen Read <readhpr at gmail.com>
- Date: Mon, 8 Aug 2011 04:20:23 -0400 (EDT)
- Delivered-to: l-mathgroup@mail-archive0.wolfram.com
- References: <201108060612.CAA13010@smc.vnet.net> <j1loki$nlf$1@smc.vnet.net>
You might like to add a PlotLabel showing the coordinates. f[x_] := Sin[x]; pt = {0, 0}; LocatorPane[Dynamic[pt, (pt[[1]] = #[[1]]; pt[[2]] = f[#[[1]]]) &], Plot[Sin[x], {x, 0, 2 Pi}, PlotLabel -> Dynamic[pt]]] HPR P.S. -- Grumpy OT Aside: When did everyone in the world become top-posters? I'm finding it everywhere...newsgroups, email from family, friends, co-workers, basically everyone. For years I used to rearrange it back to traditional bottom-posting when replying to something that was top-posted, but top-posting has become so prevalent that I have given up. Did I miss the memo that top-posting is now preferred? On 8/7/2011 6:15 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 > > 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 >> > >
- References:
- Can a Locator be Made to Track a Curve?
- From: Gregory Lypny <gregory.lypny@videotron.ca>
- Can a Locator be Made to Track a Curve?