comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: contour labels question
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: contour labels question [message #24101] Thu, 08 March 2001 13:54
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
Pavel A. Romashkin (pavel.romashkin@noaa.gov) writes:

> Paul van Delst wrote:
>>
>> The docs for the C_LABELS keyword for CONTOUR tell me:
>>
>> "C_LABELS
>> Specifies which contour levels should be labeled. By default, every other contour level
>> is labeled."
>>
>> I don't get *any* labeling by default. Is there something other that needs to be done?
>
> It implies that you need to specify the obsolete FOLLOW keyword by
> default, so that you get the labels by default :-)

I'm not sure the documentation *implies* this, but
Pavel is correct. To get contour labels on every other
contour line, the simplest thing to do is set the FOLLOW
keyword. If you want labels on *every* line (at least
every line that can *fit* contour labels according to
some unpublished algorithm), you can try this:

nlev = 12
Contour, z, x, y, NLevels=nlev, C_Labels=Replicate(1, nlev)

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
Re: contour labels question [message #24102 is a reply to message #24101] Thu, 08 March 2001 13:37 Go to previous message
Paul van Delst is currently offline  Paul van Delst
Messages: 364
Registered: March 1997
Senior Member
"Pavel A. Romashkin" wrote:
>
> Paul van Delst wrote:
>>
>> The docs for the C_LABELS keyword for CONTOUR tell me:
>>
>> "C_LABELS
>> Specifies which contour levels should be labeled. By default, every other contour level
>> is labeled."
>>
>> I don't get *any* labeling by default. Is there something other that needs to be done?
>
> It implies that you need to specify the obsolete FOLLOW keyword by
> default, so that you get the labels by default :-)

????

You're right of course. Thanx.

A bit silly though.

--
Paul van Delst A little learning is a dangerous thing;
CIMSS @ NOAA/NCEP Drink deep, or taste not the Pierian spring;
Ph: (301)763-8000 x7274 There shallow draughts intoxicate the brain,
Fax:(301)763-8545 And drinking largely sobers us again.
paul.vandelst@noaa.gov Alexander Pope.
Re: contour labels question [message #24103 is a reply to message #24102] Thu, 08 March 2001 13:27 Go to previous message
Pavel A. Romashkin is currently offline  Pavel A. Romashkin
Messages: 531
Registered: November 2000
Senior Member
Paul van Delst wrote:
>
> The docs for the C_LABELS keyword for CONTOUR tell me:
>
> "C_LABELS
> Specifies which contour levels should be labeled. By default, every other contour level
> is labeled."
>
> I don't get *any* labeling by default. Is there something other that needs to be done?

It implies that you need to specify the obsolete FOLLOW keyword by
default, so that you get the labels by default :-)

Pavel
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: contour labels question
Next Topic: Re: printing floats/integer

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 13:05:24 PDT 2025

Total time taken to generate the page: 0.00415 seconds