MathGroup Archive 2011

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

Search the Archive

Re: Defining the labels to display in ContourLabels


ContourPlot[Cos[x*y]/Exp[x^2 + y^2],
 {x, -2, 2}, {y, -2, 2},
 Contours -> 9,
 ContourLabels ->
  (Text[
     If[OddQ[Round[10*#3]], #3, ""], {#1, #2}] &)]


Bob Hanlon

---- Luiz Melo <lmelo at ufsj.edu.br> wrote: 

=============
Hi there. Assuming:

ContourPlot[Cos[x*y]/Exp[x^2 + y^2], {x, -2, 2}, {y, -2, 2}, ContourLabels
-> All, Contours -> 9]

I would like to keep the number of contours (9) and to label only those of
values 0.9, 0.7, 0.5, 0.3, 0.1

How?

Thank you.

-- 
Prof. *Luiz Guilherme C.
Melo*<https://sites.google.com/site/luizguilhermecmelo/home>
Telecommunication engineering
Universidade Federal Sao Joao del-Rei
Campus Alto Paraopeba
Rodovia MG 443, Km 7
Ouro Branco - MG
36420-000 - Brazil





  • Prev by Date: Re: simple graphics question
  • Next by Date: Re: passing Indeterminate and Infinity to C via MathLink
  • Previous by thread: Re: Defining the labels to display in ContourLabels
  • Next by thread: Question on SmoothKernelDistribution, value of computed bandwidth? (vrs. 8.01)