Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #4209
| From | Gregory Lypny <gregory.lypny@videotron.ca> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Re: Can a Locator be Made to Track a Curve? |
| Date | 2011-08-07 10:22 +0000 |
| Organization | Steven M. Christensen and Associates, Inc and MathTensor, Inc. |
| Message-ID | <j1lp0a$noo$1@smc.vnet.net> (permalink) |
| 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
Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread
Re: Can a Locator be Made to Track a Curve? Gregory Lypny <gregory.lypny@videotron.ca> - 2011-08-07 10:22 +0000
csiph-web