Re: Getting indices and rgb triplets for contour fill colours

From: Rick Brownrigg <brownrig_at_nyahnyahspammersnyahnyah>
Date: Tue Nov 05 2013 - 11:04:28 MST

Whoops…got ahead of my self -- that function get_color_index() is new with the up coming release :-(

GetFillColor() might do the trick -- its not clear whether it uses the same algorithm as the contour auto-select.

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

Rick

On Nov 5, 2013, at 10:45 AM, Andy Barrett <apbarret@nsidc.org> wrote:

> Hi
>
> how can I find the color map indices and the equivalent RGB triplets for
> a contour plot?
>
> I am creating a contour plot and allowing the colours to be assigned
> automatically but I want to know what the color indices are once they
> have been assigned.
>
> Any thoughts.
>
> Andy Barrett
> _______________________________________________
> 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 Tue Nov 5 11:04:39 2013

This archive was generated by hypermail 2.1.8 : Mon Nov 11 2013 - 09:45:33 MST