Re: how to adjust label bar with 0 value in the middle

From: Dennis Shea <shea_at_nyahnyahspammersnyahnyah>
Date: Fri Mar 29 2013 - 22:33:41 MDT

Thw simplest way:

   res@cnLevelSelectionMode = "ManualLevels" ; manual contour levels
   res@cnMinLevelValF = -2. ; set min contour level
   res@cnMaxLevelValF = 2. ; set max contour level
   res@cnLevelSpacingF = 0.25 ; set contour spacing

The spacing can be set to what ever you want.

Good Luck

On 3/29/13 9:39 PM, Dong, Bo wrote:
> Dear NCL users,
>
>
>
> I use gsn_define_colormap(wks,"BlueWhiteOrangeRed") to generate a map, the colorbar value range from -2 ~ +1.25, but the position of 0 value is not in the middle of the bar. Is there any method to have a symetrical color bar centered with 0 value, and negative vale to its left, positive value to the right.
>
>
>
> thanks,
>
> Bo
>
>
>
> _______________________________________________
> 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 Fri Mar 29 22:33:48 2013

This archive was generated by hypermail 2.1.8 : Tue Apr 02 2013 - 21:23:48 MDT