<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<div tabindex="-1" class="_2Qk4AbDuWwkuLB005ds2jm QMubUjbS-BOly_BTHEZj7 allowTextSelection">
<div>
<div>
<div dir="ltr">
<div style="color:black !important;font-size:12pt">Hi<font size="2"> <span style="font-size:11pt">
Jonathan</span></font></div>
<div style="color:black !important;font-size:12pt">You can add this:</div>
<div style="color:black !important;font-size:12pt"> res1@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.
<br>
</div>
<div style="color:black !important;font-size:12pt">Hope this help.</div>
<div style="color:black !important;font-size:12pt">Regards,</div>
<span style="color:black !important;font-size:12pt">Mamadou</span></div>
</div>
</div>
</div>
<br>
</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>De :</b> ncl-talk <ncl-talk-bounces@mailman.ucar.edu> de la part de mamadoulamine.mbaye--- via ncl-talk <ncl-talk@mailman.ucar.edu><br>
<b>Envoyé :</b> samedi 5 mars 2022 05:29<br>
<b>À :</b> ncl-talk <ncl-talk@ucar.edu>; Buzan, Jonathan <jbuzan@purdue.edu><br>
<b>Objet :</b> Re: [ncl-talk] Reverse colors within res@cn</font>
<div> </div>
</div>
<style type="text/css" style="display:none">
<!--
p
        {margin-top:0;
        margin-bottom:0}
-->
</style>
<div dir="ltr">
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Hi<font size="2"> <span style="font-size:11pt">Jonathan</span></font></div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
You can add this:</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
 res1@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.
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Hope this help.</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Regards,</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Mamadou<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div id="x_appendonsend"></div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>De :</b> ncl-talk <ncl-talk-bounces@mailman.ucar.edu> de la part de Buzan, Jonathan via ncl-talk <ncl-talk@mailman.ucar.edu><br>
<b>Envoyé :</b> vendredi 4 mars 2022 05:00<br>
<b>À :</b> ncl-talk <ncl-talk@ucar.edu><br>
<b>Objet :</b> [ncl-talk] Reverse colors within res@cn</font>
<div> </div>
</div>
<div class="x_BodyFragment"><font size="2"><span style="font-size:11pt">
<div class="x_PlainText">Hello NCL-Talk,<br>
<br>
I am making a complicated plot with multiple color palettes using the cn resources.<br>
<br>
ex.<br>
res@cnFillPalette = "hotcold_18lev"<br>
res1@cnFillPalette = “GreenMagenta16”<br>
<br>
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>
<br>
Cheers,<br>
-Jonathan<br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
ncl-talk mailing list<br>
ncl-talk@mailman.ucar.edu<br>
List instructions, subscriber options, unsubscribe:<br>
<a href="https://mailman.ucar.edu/mailman/listinfo/ncl-talk">https://mailman.ucar.edu/mailman/listinfo/ncl-talk</a></div>
</span></font></div>
</div>
</body>
</html>