Re: Asymmetric legend colors

From: Kyle Griffin <kgriffin_at_nyahnyahspammersnyahnyah>
Date: Sun Jul 08 2012 - 22:23:24 MDT

Two options are simplest.

First, you can tell NCL specific colors to use for your choice of
cnMaxValF/cnMinValF/cnLevelSpacingF.
Just set an array of color indices in cnColors = (/ ... , ..., .../), or
set cnColors to be the actual colors you choose, if you're using an
up-to-date version of NCL.

Your other option is to create a custom color table with only the colors
you want in it. You can se that up as described here:

http://www.ncl.ucar.edu/Document/Graphics/create_color_table.shtml

Depending on your situation and the number of colors you want to use,
either option can have its advantages.

Kyle
-----------------------------------------------------
Kyle S. Griffin
Dept. of Atmospheric and Environmental Sciences
University at Albany, SUNY
1400 Washington Ave, Albany, NY 12222
Office: ES-218 Email: kgriffin@albany.edu
http://www.atmos.albany.edu/student/kgriffin/

On Sun, Jul 8, 2012 at 5:49 PM, Noel Aloysius <noel.aloysius@gmail.com>wrote:

> Hi NCL,
>
> On an panel plot, I set the legend scale vary from -0.9 to 0.9 at an
> interval 0.1. But, most of the values are between -0.2 and 0.8. I want to
> change the legend colors such that -0.2 to 0 in one color gradient, white
> around 0 and another color gradient for the positive values.
>
> I will appreciate any ideas.
>
> Thanks,
> Noel
>
>
> _______________________________________________
> 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 Sun Jul 8 22:23:54 2012

This archive was generated by hypermail 2.1.8 : Mon Jul 09 2012 - 10:45:32 MDT