Min and Max values of a Label Bar

From: Erwan Monier <emonier_at_nyahnyahspammersnyahnyah>
Date: Mon, 29 Jan 2007 21:37:34 -0800

Hi,

I am dealing with a 2D-field scaled so that its values are between -1
and 1. When I plot it and manually define the max and min level values
of my label bar to -1 and 1 (see script below), I get a label bar with
two extra color boxes, for values below -1 and above 1. Therefore, when
I use a gray scale color map with white in the middle and black for the
extreme values, the black colors are used for values below -1 and above
1. However since my data is all between -1 and 1, the black color is
never used. I would like to have black color for values between -1 and
-0.8, and between 0.8 and 1, as well as no extra color boxes on my label
bar. Is there a way to achieve that?

I have tried to set the min and max values to -0.8 and 0.8, but then
there is no label string for -1 and 1. Setting cnLabelBarEndLabelsOn to
True is an option, but it doesn't work with common label bars, at least
it didn't display any values when I tried.

Is there any way to solve that problem ? Thank you...

  pres_at_cnLevelSelectionMode = "ManualLevels" ; manual contour levels
  pres_at_cnMinLevelValF = -1 ; min level
  pres_at_cnMaxLevelValF = 1 ; max level
  pres_at_cnLevelSpacingF = 0.2 ; contour level spacing

Erwan Monier
Atmospheric Science Program
University of California Davis
http://atm.ucdavis.edu/~emonier/ <http://atm.ucdavis.edu/%7Eemonier/>
_______________________________________________
ncl-talk mailing list
ncl-talk_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Mon Jan 29 2007 - 22:37:34 MST

This archive was generated by hypermail 2.2.0 : Tue Feb 06 2007 - 15:01:34 MST