Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2011

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

Search the Archive

Re: locator

  • To: mathgroup at smc.vnet.net
  • Subject: [mg120388] Re: locator
  • From: Gary Wardall <gwardall at gmail.com>
  • Date: Thu, 21 Jul 2011 05:46:16 -0400 (EDT)
  • References: <201107121059.GAA22222@smc.vnet.net> <ivjgt7$2g9$1@smc.vnet.net>

On Jul 13, 2:19 am, Heike Gramberg <heike.gramb... at gmail.com> wrote:
> 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

Would the "Drawing Tools" under "Graphics" be of help. I find it
useful when I want to locate the coordinates on Plots.

Gary Wardall


  • References:
    • locator
      • From: raga <ragamadhuri.24@gmail.com>
  • Prev by Date: Re: Total plot width
  • Next by Date: Re: sorting a nested list of 4-tuples
  • Previous by thread: Re: locator
  • Next by thread: Help Plotting director fields