[ncl-talk] Reverse colors within res at cn

mamadoulamine.mbaye at ucad.edu.sn mamadoulamine.mbaye at ucad.edu.sn
Sat Mar 5 06:31:21 MST 2022


Hi Jonathan
You can add this:
 res1 at cnFillColors            = (/17,16,15,14,13,12,11,10,9,8,7,6,5,4,3,2/). You can  reduce some numbers depending on the number of color bands you have.
Hope this help.
Regards,
Mamadou

________________________________
De : ncl-talk <ncl-talk-bounces at mailman.ucar.edu> de la part de mamadoulamine.mbaye--- via ncl-talk <ncl-talk at mailman.ucar.edu>
Envoyé : samedi 5 mars 2022 05:29
À : ncl-talk <ncl-talk at ucar.edu>; Buzan, Jonathan <jbuzan at purdue.edu>
Objet : Re: [ncl-talk] Reverse colors within res at cn

Hi Jonathan
You can add this:
 res1 at cnFillColors            = (/17,16,15,14,13,12,11,10,9,8,7,6,5,4,3,2/). You cand reduce some numbers depending on the number of color band you have.
Hope this help.
Regards,
Mamadou


________________________________
De : ncl-talk <ncl-talk-bounces at mailman.ucar.edu> de la part de Buzan, Jonathan via ncl-talk <ncl-talk at mailman.ucar.edu>
Envoyé : vendredi 4 mars 2022 05:00
À : ncl-talk <ncl-talk at ucar.edu>
Objet : [ncl-talk] Reverse colors within res at cn

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/20220305/2d8eda99/attachment.html>


More information about the ncl-talk mailing list