From: David Park on
I would like to specify custom contour labels in Tooltips for contour plot.



ContourLabels has a form {f, g} where f gives an explicit displayed label,
and g gives a Tooltip for each complete contour. But I can't make this form
work and the Help has no explicit example of this form.



Here is an example of what I would like to do:



ContourPlot[Sin[x y] == 1/2, {x, 0, \[Pi]}, {y, 0, \[Pi]},

ContourLabels ->

{Function[{x, y, z}, Text["", {x, y}]],

Function[{x, y, z}, Text["My Label"]]}

]



No tooltips on the contours. I've tried a number of variations but nothing
works. Neither does it work on a regular ContourPlot.



ContourPlot[Sin[x y], {x, 0, \[Pi]}, {y, 0, \[Pi]},

Contours -> 5,

ContourLabels ->

{Function[{x, y, z}, Text["", {x, y}]],

Function[{x, y, z}, Tooltip["My Label"]]}

]



Does anyone know how to do this?





David Park

djmpark(a)comcast.net

<http://home.comcast.net/~djmpark> http://home.comcast.net/~djmpark/