Re: retrieve named colors

From: Saji Hameed <saji.nh_at_nyahnyahspammersnyahnyah>
Date: Wed Sep 21 2011 - 14:16:24 MDT

Hi James,

You should use cnLineColors
http://www.ncl.ucar.edu/Document/Graphics/Resources/cn.shtml#cnFillColors

See the example below that explicitly assigns color levels for each contour.
http://www.ncl.ucar.edu/Applications/Scripts/conLev_3.ncl

saji

On Thu, Sep 22, 2011 at 4:35 AM, James Correia <jimmyc42@gmail.com> wrote:
> Hi-
> I am trying to use the existing colors in my colormap to color specific
> contours in my contour plot. How do I assign the value for col(q) in the
> example below? Or should I be using the gsnSpreadColorStart (and End) to use
> the different colors individually for each specific contour?
>
> colors=(/"white","black","white","blue"/)
>   gsn_merge_colormaps(wks,colors,"radar")
>
> res@cnLineColor = col(q)
>
> --
>
> James Correia Jr.
> OU CIMMS Research Associate
> SPC HWT Liaison
>
> "The highest function of the teacher consists not so much in imparting
> knowledge as in stimulating the pupil in its love and pursuit. To know how
> to suggest is the art of teaching."
>
> ------------------------------------------------------------------------------------------
> The views expressed in this email do not necessarily reflect those of NOAA,
> the National Weather Service, or the University of Oklahoma.
> ------------------------------------------------------------------------------------------
>
>
> _______________________________________________
> 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 Sep 21 16:16:32 2011

This archive was generated by hypermail 2.1.8 : Thu Sep 22 2011 - 17:12:44 MDT