[ncl-talk] Reverse colors within res at cn

Buzan, Jonathan jbuzan at purdue.edu
Fri Mar 4 07:27:39 MST 2022


Hi Rick,

Ah, I figured that there would be some sort of -1 in there—I just wasn’t sure how to implement it. I’ll give it a shot.

Cheers,
-Jonathan



On Mar 4, 2022, at 15:23, Rick Brownrigg <brownrig at ucar.edu<mailto:brownrig at ucar.edu>> wrote:

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<mailto: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<mailto: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/5914f59c/attachment.html>


More information about the ncl-talk mailing list