Re: Setting Contour Labels

From: Kyle Griffin <ksgriffin2_at_nyahnyahspammersnyahnyah>
Date: Thu Aug 08 2013 - 07:55:51 MDT

I would advise you to look at the cnLineLabelInterval resource. Setting
this resource = 2 should make it plot every other line.
There are more specific ways to explicitly set the line labels, but I think
this should suffice for your purpose.

For the label angles, there is cnLineLabelAngleF. Its default setting is to
remain tangent to the contours, but can be set to any angle and will be
valid for all line labels.

See:
http://www.ncl.ucar.edu/Document/Graphics/Resources/cn.shtml#cnLineLabelInterval
http://www.ncl.ucar.edu/Document/Graphics/Resources/cn.shtml#cnLineLabelAngleF

Kyle

----------------------------------------
Kyle S. Griffin
Department of Atmospheric and Oceanic Sciences
University of Wisconsin - Madison
Room 1421
1225 W Dayton St, Madison, WI 53706
Email: ksgriffin2@wisc.edu

On Thu, Aug 8, 2013 at 8:36 AM, Xi Chang <xi.chang01@gmail.com> wrote:

> Hello NCL,
>
> I have a setting for my contour labels as follow:
>
> res@cnLevelSelectionMode = "ExplicitLevels"
> res@cnLevels = (/-150,-120,-90,-60,-30,30,60,90,120,150/)
> res@cnLineLabelBackgroundColor = "white"
>
> The questions are:
> 1. What should I do If I just want to show the contour labels only for +/-
> 30 , +/- 90, and +/- 150 ?
>
> 2. Is there any way to rotate the contour label to become Horizontal in
> direction instead of following the direction of the contour?
>
> Thanks
> Xi
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
>

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Thu Aug 8 07:56:23 2013

This archive was generated by hypermail 2.1.8 : Wed Aug 14 2013 - 18:35:09 MDT