Re: contour labels question [message #24101] |
Thu, 08 March 2001 13:54 |
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  |
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  |
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
|
|
|