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

MathGroup Archive 2010

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

Search the Archive

Re: Custom ContourLabels in Contour Plots

  • To: mathgroup at smc.vnet.net
  • Subject: [mg110276] Re: Custom ContourLabels in Contour Plots
  • From: István Zachar <zac at freemail.hu>
  • Date: Fri, 11 Jun 2010 02:10:15 -0400 (EDT)
  • References: <hm56ku$k47$1@smc.vnet.net>

I am interested in the solution as well! It seems so that this
functionality exists only in theory (the documentation) but not in the
field...
Istvan


On Feb 25, 8:51 am, "David Park" <djmp... at comcast.net> wrote:
> I would like to specify custom contour labels in Tooltips for contour plot.
>
> ContourLabelshas 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
>
> djmp... at comcast.net
>
>  <http://home.comcast.net/~djmpark>http://home.comcast.net/~djmpark/ 



  • Prev by Date: Re: O'Reilly Ebook Deal of Day: Mathematica Cookbook ($9.99)
  • Next by Date: 3D plot of hemisphere pushing into a triangular membrane or surface
  • Previous by thread: Re: Setting Attributes for Function Generated Parameters (with package
  • Next by thread: Re: Custom ContourLabels in Contour Plots