MathGroup Archive 2007

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

Search the Archive

Re: Tooltips in ContourPlot


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


  • Prev by Date: Re: help with polynomial solutions
  • Next by Date: Re: help with polynomial solutions
  • Previous by thread: Tooltips in ContourPlot
  • Next by thread: Re: Tooltips in ContourPlot