Re: Tooltips in ContourPlot
- To: mathgroup at smc.vnet.net
- Subject: [mg81777] Re: [mg81726] Tooltips in ContourPlot
- From: Carl Woll <carlw at wolfram.com>
- Date: Wed, 3 Oct 2007 02:34:35 -0400 (EDT)
- References: <200710020940.FAA28639@smc.vnet.net>
David Park wrote: >Is it possible to control what is displayed in Tooltips in contour plots? >For example, in the following plot: > >ContourPlot[ > Re[Cosh[x + \[ImaginaryI] y]] == > Re[Sin[x + \[ImaginaryI] y]], {x, -6, 6}, {y, -6, 6}] > >would it be possible to change the Tooltip to Re[Cosh[z]] == Re[Sin[z]] or >to some descriptive text? > > > It doesn't seem as easy as I would have hoped. One possibility is to use ReplaceAll: ContourPlot[ Re[Cosh[x + I y]] == Re[Sin[x + I y]], {x, -6, 6}, {y, -6, 6}] /. Tooltip[line_, lab_] :> Tooltip[line, Re[Cosh[z]] == Re[Sin[z]]] Carl Woll Wolfram Research
- References:
- Tooltips in ContourPlot
- From: "David Park" <djmpark@comcast.net>
- Tooltips in ContourPlot