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

Home » Public Forums » archive » Re: [Q] Controlling the number of contour labels
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: [Q] Controlling the number of contour labels [message #7092] Wed, 18 September 1996 00:00
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
Iarla Kilbane-Dawe <iarla@atm.ch.cam.ac.uk> wrote:

> does anyone know of a way to control the number of labels on a
> contour using the CONTOUR procedure. IDL used to produce a reasonable
> number (one or two per contour line) but recently, presumably because of
> changes in my data, the number of labels per contour line has risen to
> about ten. Does anyone know how to keep the number down?
>

I don't believe there is a way to control the number of labels on an
individual contour line. This depends on the length of the contour
line, etc.

But if you have too many labels on your contour plot, you can do
something about that. By default every other contour line is
labeled when the FOLLOW keyword is set. If you would like
to label every third contour line, for example, you can use
the C_LABELS keyword like this:

Contour, data, /Follow, C_LABELS=[1, 0, 0]

The C_LABELS vector tells IDL whether a contour line should
be labeled (value=1) or not (value=0). The vector wraps for
more than 3 contour lines. So if you set NLEVELS=12, the
1st, 4th, 7th, and 10th contour line will be labeled.

David

--
David Fanning, Ph.D.
Phone: 970-221-0438
Fax: 970-221-4728
E-Mail: davidf@fortnet.org
Re: [Q] Controlling the number of contour labels [message #7093 is a reply to message #7092] Wed, 18 September 1996 00:00 Go to previous message
Andy Loughe is currently offline  Andy Loughe
Messages: 174
Registered: November 1995
Senior Member
I am quite sure this is *NOT* controllable from within IDL, you would
have to have access to the C program which performs the contouring.
Contour is in need of a major re-write, as is map_set! Will these
re-writes actually occur? Probably not, RSI prefers to add gee-whiz
features to IDL while older core routines remain broken.

-----
Andrew F. Loughe afl@cdc.noaa.gov
University of Colorado, CIRES http://cdc.noaa.gov/~afl
Campus Box 449 phn:(303)492-0707 fax:(303)497-7013
Boulder, CO 80309-0449 "He who laughs last thinks slowest!"

On Wed, 18 Sep 1996, Iarla Kilbane-Dawe wrote:

>
>
> Hello,
>
> does anyone know of a way to control the number of labels on a
> contour using the CONTOUR procedure. IDL used to produce a reasonable
> number (one or two per contour line) but recently, presumably because of
> changes in my data, the number of labels per contour line has risen to
> about ten. Does anyone know how to keep the number down?
>
> Thanks in advance,
>
> Iarla.
>
> ____________________________________________________________ _________
>
> Iarla Kilbane-Dawe Email: iarla@atm.ch.cam.ac.uk
> European Ozone Research Phone: ++44 (01223) 336524
> Coordinating Unit ++44 (01223) 311772
> Cambridge University Fax: ++44 (01223) 311750
> ____________________________________________________________ _________
>
>
>
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: How to reverse the order of tick mark
Next Topic: [Q] Controlling the number of contour labels

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

Current Time: Wed Oct 08 17:44:51 PDT 2025

Total time taken to generate the page: 0.00642 seconds