<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
Hi Rick,
<div class=""><br class="">
</div>
<div class="">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.</div>
<div class=""><br class="">
</div>
<div class="">Cheers,</div>
<div class="">-Jonathan</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
<div><br class="">
<blockquote type="cite" class="">
<div class="">On Mar 4, 2022, at 15:23, Rick Brownrigg <<a href="mailto:brownrig@ucar.edu" class="">brownrig@ucar.edu</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div dir="ltr" class="">
<div class="">Hi Jonathan,</div>
<div class=""><br class="">
</div>
<div class="">How about something like:</div>
<div class=""><br class="">
</div>
<div class=""> c = read_colormap_file("GreenMagenta16")</div>
<div class=""> res1@cnFillPalette = c(::-1, :)</div>
<div class=""><br class="">
</div>
<div class="">Rick</div>
<div class=""><br class="">
</div>
</div>
<br class="">
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Fri, Mar 4, 2022 at 6:00 AM Buzan, Jonathan via ncl-talk <<a href="mailto:ncl-talk@mailman.ucar.edu" class="">ncl-talk@mailman.ucar.edu</a>> wrote:<br class="">
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Hello NCL-Talk,<br class="">
<br class="">
I am making a complicated plot with multiple color palettes using the cn resources.<br class="">
<br class="">
ex.<br class="">
res@cnFillPalette = "hotcold_18lev"<br class="">
res1@cnFillPalette = “GreenMagenta16”<br class="">
<br class="">
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.<br class="">
<br class="">
Cheers,<br class="">
-Jonathan<br class="">
<br class="">
<br class="">
<br class="">
<br class="">
_______________________________________________<br class="">
ncl-talk mailing list<br class="">
<a href="mailto:ncl-talk@mailman.ucar.edu" target="_blank" class="">ncl-talk@mailman.ucar.edu</a><br class="">
List instructions, subscriber options, unsubscribe:<br class="">
<a href="https://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank" class="">https://mailman.ucar.edu/mailman/listinfo/ncl-talk</a></blockquote>
</div>
</div>
</blockquote>
</div>
<br class="">
</div>
</body>
</html>