MathGroup Archive 2010

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

Search the Archive

Re: How to get Tooltip value

  • To: mathgroup at
  • Subject: [mg112893] Re: How to get Tooltip value
  • From: Albert Retey <awnl at>
  • Date: Tue, 5 Oct 2010 05:33:47 -0400 (EDT)
  • References: <i8c8rl$g73$>

Am 04.10.2010 12:04, schrieb James Brown:
> Is there  a way to extract the value of a variable and display it with 
> Tooltip?
> Example:
> f[x_] := 1/x^2
> Plot[Tooltip[f[x],"Value of x is:" "(wish I knew)"],{x,0,100}]
I think this should get you going:

Dynamic[CurrentValue[{"MousePosition", "Graphics"}]]

I found it works better to only extract the first value and calculate
the function value with that, otherwise the difference can become

  Dynamic[{#, f[#]} &@CurrentValue[{"MousePosition", "Graphics"}][[1]]
   ]], {x, 0, 100}]



  • Prev by Date: Re: How to get Tooltip value
  • Next by Date: TableForm options test
  • Previous by thread: Re: How to get Tooltip value
  • Next by thread: suggestions for version control or backup systems?