Re: colors - negative/zero/positive

From: Dennis Shea <shea_at_nyahnyahspammersnyahnyah>
Date: Wed Apr 28 2010 - 20:24:26 MDT

Precreated color tables are at:

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

Typically, people use: "amwg" , "amwg_blueyellowred", "ViBlGrWhYeOrRe",
"posneg_1", "posneg_2", "BlueDarkRed18", "GreenMagenta16", "BlWhRe",
"BlRe", etc

You can always set the limits manually

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

  Then set the resource "gsnSpreadColors"

   res@gsnSpreadColors = True

===
If you want it set automatically, see the example at:

http://www.ncl.ucar.edu/Document/Functions/Contributed/symMinMaxPlt.shtml

Again, set res@gsnSpreadColors = True

Good luck
D

On 4/28/10 7:59 PM, Paula Doubrawa Moreira wrote:
> Hello All,
>
> Is there a way to assign a colormap to a plot in such a way that
> negative values will range between certain colors (say blue) and
> positive between others (say red) while zero would be white?
>
> I have tried *gsn_contour_shade* and *ColorShadeLeGeContour* but I was
> only able to assign ONE color for values .LE. zero and another for
> values .GE. zero.
>
> I have used functions that make this distinction in contours
> *gsnContourNegLine*/*PosLine*/*ZeroLine* and I was wondering if there is
> a similar thing for shading.
>
> Thank you
> -paula
>
>
>
> _______________________________________________
> 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 Wed Apr 28 20:24:32 2010

This archive was generated by hypermail 2.1.8 : Thu Apr 29 2010 - 08:05:27 MDT