[ncl-talk] Reverse colors within res at cn

Rick Brownrigg brownrig at ucar.edu
Fri Mar 4 07:23:32 MST 2022


Hi Jonathan,

How about something like:

 c = read_colormap_file("GreenMagenta16")
 res1 at cnFillPalette = c(::-1, :)

Rick


On Fri, Mar 4, 2022 at 6:00 AM Buzan, Jonathan via ncl-talk <
ncl-talk at mailman.ucar.edu> wrote:

> Hello NCL-Talk,
>
> I am making a complicated plot with multiple color palettes using the cn
> resources.
>
> ex.
> res at cnFillPalette = "hotcold_18lev"
> res1 at cnFillPalette = “GreenMagenta16”
>
> Is there a way to reverse the colors without resetting all colors, e.g.
> gsn_reverse_colormap(wks)? I don’t want to reverse all the colors for the
> plots, just the plots calling the GreenMagenta16.
>
> Cheers,
> -Jonathan
>
>
>
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at mailman.ucar.edu
> List instructions, subscriber options, unsubscribe:
> https://mailman.ucar.edu/mailman/listinfo/ncl-talk
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.ucar.edu/pipermail/ncl-talk/attachments/20220304/11ff90c3/attachment.html>


More information about the ncl-talk mailing list