Re: locator
- To: mathgroup at smc.vnet.net
- Subject: [mg120218] Re: locator
- From: Heike Gramberg <heike.gramberg at gmail.com>
- Date: Wed, 13 Jul 2011 03:12:50 -0400 (EDT)
- References: <201107121059.GAA22222@smc.vnet.net>
I'm not sure what it is what you're asking for, but if you want to use a locator to trace a curve you can do something like Module[{p = {0, 1}, temp}, temp[t_] := Exp[- t]; Row[{ LocatorPane[Dynamic[p, (p[[2]] = temp[#[[1]]]; p[[1]] = #[[1]]) &], Plot[temp[t], {t, 0, 5}, PlotRange -> {Automatic, {0, 1}}, ImageSize -> 400], {{0, 0}, {5, 1}}], Dynamic[Grid[{{"Time:", p[[1]]}, {"Temp:", p[[2]]}}]]}]] Heike. On 12 Jul 2011, at 11:59, raga wrote: > hi, > i created a front end in mathematica which provides the user the > independence of providing the input to the code and my code plots the > graph for variation of temperature with time for newtons law of > cooling but can any body please help me out by telling how to use a > locator to locate the individual points which shows the respective > temperature on the graph >
- References:
- locator
- From: raga <ragamadhuri.24@gmail.com>
- locator