Mathematica 9 is now available
Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2009

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

Search the Archive

Re: tooltip - evaluate function at point

  • To: mathgroup at smc.vnet.net
  • Subject: [mg98734] Re: tooltip - evaluate function at point
  • From: dbreiss at gmail.com
  • Date: Fri, 17 Apr 2009 04:28:42 -0400 (EDT)
  • References: <gs6pjo$h7i$1@smc.vnet.net>

Here is the start of one sort of approach.  It seems ot have some
bugginess though.  But perhaps this will get you going:

With[{plot =
   ContourPlot[Arg[Gamma[x + I*y]] == 0, {x, -10, 10}, {y, -10, 10},
    PlotPoints -> 20]},
 Dynamic@Tooltip[
   plot,
   (With[{z = Complex @@ MousePosition["Graphics"]},
     {z, Gamma[z]}])
   ]
 ]



I suspect that someone else will give you a more stable approach....

--David



On Apr 16, 4:18 am, "Cristina Ballantine" <cball... at holycross.edu>
wrote:
> I would like to plot the solutions to an equation using ContourPlot and
> add a tooltip that evaluates a different function at the points on the
> solution. In particular, for the plot
>
> ContourPlot[Arg[Gamma[x + I*y]] == 0, {x, -10, 10}, {y, -10, 10}, Plo=
tPoints -> 20]
>
> when the cursor is over a solution point I would like the ToolTip to
> display the value of Gamma at that point. Is this possible? If so, any
> suggestion is greatly appreciated.
>
> Cristina



  • Prev by Date: Re: Been doing real-time measurements with Mathematica! (Wii Balance
  • Next by Date: Re: Exporting animations
  • Previous by thread: Re: tooltip - evaluate function at point
  • Next by thread: Re: tooltip - evaluate function at point