<div dir="ltr"><div class="gmail_default" style="font-size:small">Hi Laura,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">I&#39;m not sure it&#39;s very useful, but there&#39;s a &quot;draw_color_palette&quot; function that you can call to draw a set of colors:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">At the end of the polyg_8.ncl script, add:</div><div class="gmail_default">







<p class="gmail-p1" style="font-size:small"><span class="gmail-s1">  </span><span class="gmail-s2">draw_color_palette</span><span class="gmail-s1">(wks,colors,False)</span></p><p class="gmail-p1" style="font-size:small">and this will draw the colors defined by &quot;colors&quot;. (See attached image)</p><p class="gmail-p1" style="font-size:small">The important thing to note here is that &quot;colors&quot; is an array of color indexes into a workstation color map. You have to make sure to call draw_color_palette after the workstation color map has been set (by gsn_define_colormap).  If no workstation color map is set, then the default &quot;ncl_default&quot; workstation color map is in effect.</p><p class="gmail-p1" style="font-size:small">Here&#39;s the documentation and some examples:</p><p class="gmail-p1"><a href="http://www.ncl.ucar.edu/Document/Functions/Built-in/draw_color_palette.shtml">http://www.ncl.ucar.edu/Document/Functions/Built-in/draw_color_palette.shtml</a><br></p><p class="gmail-p1"><a href="http://www.ncl.ucar.edu/Applications/color.shtml#ex9">http://www.ncl.ucar.edu/Applications/color.shtml#ex9</a><br></p><p class="gmail-p1"><a href="http://www.ncl.ucar.edu/Applications/colormap.shtml#ex2a">http://www.ncl.ucar.edu/Applications/colormap.shtml#ex2a</a><br></p><p class="gmail-p1"><a href="http://www.ncl.ucar.edu/Applications/colormap.shtml#ex3a">http://www.ncl.ucar.edu/Applications/colormap.shtml#ex3a</a><br></p><p class="gmail-p1">--Mary</p><p class="gmail-p1"><br></p><p class="gmail-p1"><br></p><p class="gmail-p1" style="font-size:small"><br></p><p class="gmail-p1" style="font-size:small">--Mary</p><p class="gmail-p1" style="font-size:small"><br></p></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Apr 21, 2017 at 1:07 PM, Michael Notaro <span dir="ltr">&lt;<a href="mailto:mnotaro@wisc.edu" target="_blank">mnotaro@wisc.edu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">




<div dir="ltr">
<div id="m_-8424699626168672164divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif" dir="ltr">
<p><a href="http://www.ncl.ucar.edu/Document/Graphics/ColorTables/WhViBlGrYeOrRe.shtml" class="m_-8424699626168672164OWAAutoLink" id="m_-8424699626168672164LPlnk617677" target="_blank">http://www.ncl.ucar.edu/<wbr>Document/Graphics/ColorTables/<wbr>WhViBlGrYeOrRe.shtml</a></p>
<div id="m_-8424699626168672164LPBorder_GT_14928016531300.7447353799598748" style="margin-bottom:20px;overflow:auto;width:100%;text-indent:0px">
<table id="m_-8424699626168672164LPContainer_14928016531280.3848842196728981" cellspacing="0" style="width:90%;background-color:rgb(255,255,255);overflow:auto;padding-top:20px;padding-bottom:20px;margin-top:20px;border-top:1px dotted rgb(200,200,200);border-bottom:1px dotted rgb(200,200,200)">
<tbody>
<tr valign="top" style="border-spacing:0px">
<td id="m_-8424699626168672164TextCell_14928016531290.5616986975569667" colspan="2" style="vertical-align:top;padding:0px;display:table-cell">
<div id="m_-8424699626168672164LPRemovePreviewContainer_14928016531290.4248675993797122"></div>
<div id="m_-8424699626168672164LPTitle_14928016531290.03458621493258929" style="color:rgb(183,1,1);font-weight:normal;font-size:21px;font-family:wf_segoe-ui_light,&quot;Segoe UI Light&quot;,&quot;Segoe WP Light&quot;,&quot;Segoe UI&quot;,&quot;Segoe WP&quot;,Tahoma,Arial,sans-serif;line-height:21px">
<a id="m_-8424699626168672164LPUrlAnchor_14928016531290.06695279163073287" href="http://www.ncl.ucar.edu/Document/Graphics/ColorTables/WhViBlGrYeOrRe.shtml" style="text-decoration:none" target="_blank">WhViBlGrYeOrRe color table - University Corporation for ...</a></div>
<div id="m_-8424699626168672164LPMetadata_14928016531290.330633858666584" style="margin:10px 0px 16px;color:rgb(102,102,102);font-weight:normal;font-family:wf_segoe-ui_normal,&quot;Segoe UI&quot;,&quot;Segoe WP&quot;,Tahoma,Arial,sans-serif;font-size:14px;line-height:14px">
<a href="http://www.ncl.ucar.edu" target="_blank">www.ncl.ucar.edu</a></div>
<div id="m_-8424699626168672164LPDescription_14928016531300.726573284856548" style="display:block;color:rgb(102,102,102);font-weight:normal;font-family:wf_segoe-ui_normal,&quot;Segoe UI&quot;,&quot;Segoe WP&quot;,Tahoma,Arial,sans-serif;font-size:14px;line-height:20px;max-height:100px;overflow:hidden">
Sample NCL script usages: ;---Using the color map to define colors for contours or vectors res@cnFillPalette = &quot;WhViBlGrYeOrRe&quot; res@vcLevelPalette = &quot;WhViBlGrYeOrRe ...</div>
</td>
</tr>
</tbody>
</table>
</div>
<br>
<br>
<p></p>
<p><br>
</p>
<div id="m_-8424699626168672164Signature">
<div id="m_-8424699626168672164divtagdefaultwrapper" style="font-size:12pt;color:#000000;background-color:#ffffff;font-family:Calibri,Arial,Helvetica,sans-serif">
Michael Notaro<br>
<div>Associate Director<br>
</div>
<div>Nelson Institute Center for Climatic Research<br>
</div>
<div>University of Wisconsin-Madison<br>
</div>
<div>Phone: <a href="tel:(608)%20261-1503" value="+16082611503" target="_blank">(608) 261-1503</a><br>
</div>
<div>Email: <a href="mailto:mnotaro@wisc.edu" target="_blank">mnotaro@wisc.edu</a><br>
</div>
</div>
</div>
<br>
<br>
<div style="color:rgb(0,0,0)">
<div>
<hr style="display:inline-block;width:98%">
<div id="m_-8424699626168672164x_divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> <a href="mailto:ncl-talk-bounces@ucar.edu" target="_blank">ncl-talk-bounces@ucar.edu</a> &lt;<a href="mailto:ncl-talk-bounces@ucar.edu" target="_blank">ncl-talk-bounces@ucar.edu</a>&gt; on behalf of Laura Fowler &lt;<a href="mailto:laura@ucar.edu" target="_blank">laura@ucar.edu</a>&gt;<br>
<b>Sent:</b> Friday, April 21, 2017 2:03 PM<br>
<b>To:</b> <a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a><br>
<b>Subject:</b> [ncl-talk] polyg_8.ncl</font>
<div> </div>
</div>
</div>
<font size="2"><span style="font-size:10pt">
<div class="m_-8424699626168672164PlainText"><div><div class="h5">Hello:<br>
<br>
I have kind of &quot;silly&quot; questions about the variable &quot;colors&quot; in the<br>
script polyg_8.ncl.<br>
colors = (/10,30,38,48,56,66,74,94/)<br>
<br>
Where do I find which color corresponds to each number. I looked at<br>
the web page on color tables but did not find it.<br>
<br>
Many thanks,<br>
Laura<br>
<br>
<br>
-- <br>
!-----------------------------<wbr>------------------------------<wbr>------------------------------<wbr>--------------------<br>
Laura D. Fowler<br>
Mesoscale and Microscale Meteorology Division (MMM)<br>
National Center for Atmospheric Research<br>
P.O. Box 3000, Boulder CO 80307-3000<br>
<br>
e-mail: <a href="mailto:laura@ucar.edu" target="_blank">laura@ucar.edu</a><br>
phone: <a href="tel:(303)%20497-1628" value="+13034971628" target="_blank">303-497-1628</a><br>
<br>
!-----------------------------<wbr>------------------------------<wbr>------------------------------<wbr>--------------------<br>
______________________________<wbr>_________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" id="m_-8424699626168672164LPlnk213400" target="_blank">http://mailman.ucar.edu/<wbr>mailman/listinfo/ncl-talk</a>
</div></div><div id="m_-8424699626168672164LPBorder_GT_14928016513380.16149755890685125" style="margin-bottom:20px;overflow:auto;width:100%;text-indent:0px">
<table id="m_-8424699626168672164LPContainer_14928016513360.7477780913420995" cellspacing="0" style="width:90%;background-color:rgb(255,255,255);overflow:auto;padding-top:20px;padding-bottom:20px;margin-top:20px;border-top:1px dotted rgb(200,200,200);border-bottom:1px dotted rgb(200,200,200)">
<tbody>
<tr valign="top" style="border-spacing:0px">
<td id="m_-8424699626168672164TextCell_14928016513370.17963258940540272" colspan="2" style="vertical-align:top;padding:0px;display:table-cell">
<div id="m_-8424699626168672164LPRemovePreviewContainer_14928016513370.9544909495185592"></div>
<div id="m_-8424699626168672164LPTitle_14928016513370.5205400788641315" style="color:rgb(183,1,1);font-weight:normal;font-size:21px;font-family:wf_segoe-ui_light,&quot;Segoe UI Light&quot;,&quot;Segoe WP Light&quot;,&quot;Segoe UI&quot;,&quot;Segoe WP&quot;,Tahoma,Arial,sans-serif;line-height:21px">
<a id="m_-8424699626168672164LPUrlAnchor_14928016513370.5084610082075662" href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" style="text-decoration:none" target="_blank">ncl-talk Info Page - University Corporation for ...</a></div>
<div id="m_-8424699626168672164LPMetadata_14928016513370.9896336808448094" style="margin:10px 0px 16px;color:rgb(102,102,102);font-weight:normal;font-family:wf_segoe-ui_normal,&quot;Segoe UI&quot;,&quot;Segoe WP&quot;,Tahoma,Arial,sans-serif;font-size:14px;line-height:14px">
<a href="http://mailman.ucar.edu" target="_blank">mailman.ucar.edu</a></div>
<div id="m_-8424699626168672164LPDescription_14928016513370.8844158199681815" style="display:block;color:rgb(102,102,102);font-weight:normal;font-family:wf_segoe-ui_normal,&quot;Segoe UI&quot;,&quot;Segoe WP&quot;,Tahoma,Arial,sans-serif;font-size:14px;line-height:20px;max-height:100px;overflow:hidden">
Unsubscribing from ncl-talk, changing subscription options, getting your password, etc.</div>
</td>
</tr>
</tbody>
</table>
</div>
<br>
<br>
</div>
</span></font></div>
</div>
</div>

<br>______________________________<wbr>_________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/<wbr>mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>