Re: colors for specified areas

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Thu, 3 Sep 2009 11:04:00 -0600 (MDT)

I don't think there's a way to do this. I tried using just
one color to see if it would propagate to the rest of the
specified areas, but instead, it uses some internal coloring
scheme to do the rest.

I think what you need to do, assuming you have an array of
your listed areas (say "fill_areas"):

   res_at_mpSpecifiedFillColors = new(dimsizes(fill_areas),integer)
   res_at_mpSpecifiedFillColors(:) = 3 ; or whatever desired color index

You can also do a named color:

   res_at_mpSpecifiedFillColors = new(dimsizes(fill_areas),string)
   res_at_mpSpecifiedFillColors(:) = "red"

--Mary

On Thu, 3 Sep 2009, Mateus Teixeira wrote:

> Dear NCL users,
>
> Is there a way to specify directly one single color for all specified
> areas in a map plot?
> I only find mpSpecifiedFillColors in which I have to specify the
> colors one by one.
>
> Best regards,
>
>
> --
> Mateus da Silva Teixeira
>
> Registered Linux User #466740
> _______________________________________________
> 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 Thu Sep 03 2009 - 11:04:00 MDT

This archive was generated by hypermail 2.2.0 : Thu Sep 03 2009 - 21:03:38 MDT