Re: Defining the labels to display in ContourLabels
- To: mathgroup at smc.vnet.net
- Subject: [mg121616] Re: Defining the labels to display in ContourLabels
- From: Bob Hanlon <hanlonr at cox.net>
- Date: Thu, 22 Sep 2011 07:26:28 -0400 (EDT)
- Delivered-to: l-mathgroup@mail-archive0.wolfram.com
- Reply-to: hanlonr at cox.net
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