MathGroup Archive 2010

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

Search the Archive

Re: How to get Tooltip value

  • To: mathgroup at smc.vnet.net
  • Subject: [mg112912] Re: How to get Tooltip value
  • From: Bob Hanlon <hanlonr at cox.net>
  • Date: Tue, 5 Oct 2010 05:37:35 -0400 (EDT)

Module[
 {fp, pt, xdel = .1, xmin = .1, xmax = 100},
 Manipulate[
  LogPlot[f[x], {x, xmin, xmax},
   PlotRange -> All,
   Epilog -> {
     Text[{p, NumberForm[fp = f[p], 3]},
      pt = {p, Log[fp]},
      {If[p < 75, -1.25, 1.25],
       If[p < 10, 1.5, -2]}],
     AbsolutePointSize[4],
     Red, Point[pt]}],
  {{p, 20.}, xmin, xmax, xdel,
   Appearance -> "Labeled"}]]


Bob Hanlon

---- James Brown <Jim at SETI.Net> wrote: 

=============
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}]

Thanks... Jim 



  • Prev by Date: Re: How to get Tooltip value
  • Next by Date: Re: How to get Tooltip value
  • Previous by thread: Re: How to get Tooltip value
  • Next by thread: Re: How to get Tooltip value