<div dir="ltr"><div class="gmail_default" style="font-size:small">Hi Don,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Sorry about the late response. I didn't see this message until today. By coincidence, I happened to be working on a different color map drawing program, one that will allow me to draw any type of colors in a row/column format, given an array of colormaps, an array of RGB or RGBA values, an array of named colors, or an array of color index values. This one doesn't do a single labelbar though.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">I've attached a modified version of the labelbar code that I used to draw the color tables, and included a test program to call it. Let me know if you have issues with it. I didn't test it beyond this test code.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">--Mary</div><div class="gmail_default" style="font-size:small"><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jan 23, 2015 at 2:41 PM, David Brown <span dir="ltr"><<a href="mailto:dbrown@ucar.edu" target="_blank">dbrown@ucar.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">You may well have found the script she uses. But as you say, she is<br>
tied up with the workshop now -- I'm pretty sure we will hear from her<br>
before long on this topic.<br>
-dave<br>
<br>
<br>
On Fri, Jan 23, 2015 at 2:26 PM, Don Murray (NOAA Affiliate)<br>
<div class="HOEnZb"><div class="h5"><<a href="mailto:don.murray@noaa.gov">don.murray@noaa.gov</a>> wrote:<br>
> Thanks, Dave. I did find this script which we were able to modify to do<br>
> what we need:<br>
><br>
> <a href="http://www.ncl.ucar.edu/Document/Graphics/ColorTables/Images/cmap_across.ncl" target="_blank">http://www.ncl.ucar.edu/Document/Graphics/ColorTables/Images/cmap_across.ncl</a><br>
><br>
> but if Mary has a script, that would be good. I know she's tied up with a<br>
> workshop now.<br>
><br>
> Don<br>
><br>
><br>
> On 1/23/15 2:14 PM, David Brown wrote:<br>
>><br>
>> No NCL definitely created them. Mary knows the details since she<br>
>> created the thumbnail images. I suspect they are just LabelBars with<br>
>> the text and outlines removed.<br>
>> -dave<br>
>><br>
>> On Fri, Jan 23, 2015 at 1:01 PM, Don Murray (NOAA Affiliate)<br>
>> <<a href="mailto:don.murray@noaa.gov">don.murray@noaa.gov</a>> wrote:<br>
>>><br>
>>> Hi Dave-<br>
>>><br>
>>> I want a little thumbnail of the colormap like on the examples page so I<br>
>>> can<br>
>>> add it to a menu. Maybe they weren't created in NCL?<br>
>>><br>
>>> Don<br>
>>><br>
>>><br>
>>> On 1/23/15 12:44 PM, David Brown wrote:<br>
>>>><br>
>>>><br>
>>>> Hi Don,<br>
>>>><br>
>>>> The appearance is a little different, but the simplest way is probably<br>
>>>> the procedure gsn_draw_colormap<br>
>>>><br>
>>>><br>
>>>> (<a href="http://www.ncl.ucar.edu/Document/Graphics/Interfaces/gsn_draw_colormap.shtml" target="_blank">http://www.ncl.ucar.edu/Document/Graphics/Interfaces/gsn_draw_colormap.shtml</a>)<br>
>>>><br>
>>>> -dave<br>
>>>><br>
>>>><br>
>>>> On Fri, Jan 23, 2015 at 12:23 PM, Don Murray (NOAA Affiliate)<br>
>>>> <<a href="mailto:don.murray@noaa.gov">don.murray@noaa.gov</a>> wrote:<br>
>>>>><br>
>>>>><br>
>>>>> Is there a quick and dirty way to draw a colormap image in NCL like the<br>
>>>>> ones on:<br>
>>>>><br>
>>>>> <a href="http://www.ncl.ucar.edu/Document/Graphics/color_table_gallery.shtml" target="_blank">http://www.ncl.ucar.edu/Document/Graphics/color_table_gallery.shtml</a><br>
>>>>><br>
>>>>> (e.g):<br>
>>>>><br>
>>>>><br>
>>>>><br>
>>>>> <a href="http://www.ncl.ucar.edu/Document/Graphics/ColorTables/Images/ncl_default_labelbar.500.png" target="_blank">http://www.ncl.ucar.edu/Document/Graphics/ColorTables/Images/ncl_default_labelbar.500.png</a><br>
>>>>><br>
>>>>> Thanks.<br>
>>>>><br>
>>>>> Don<br>
>>>>> --<br>
>>>>> Don Murray<br>
>>>>> NOAA/ESRL/PSD and CU-CIRES<br>
>>>>> <a href="tel:303-497-3596" value="+13034973596">303-497-3596</a><br>
>>>>> <a href="http://www.esrl.noaa.gov/psd/people/don.murray/" target="_blank">http://www.esrl.noaa.gov/psd/people/don.murray/</a><br>
>>>>> _______________________________________________<br>
>>>>> ncl-talk mailing list<br>
>>>>> List instructions, subscriber options, unsubscribe:<br>
>>>>> <a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
>>><br>
>>><br>
>>><br>
>>> --<br>
>>> Don Murray<br>
>>> NOAA/ESRL/PSD and CU-CIRES<br>
>>> <a href="tel:303-497-3596" value="+13034973596">303-497-3596</a><br>
>>> <a href="http://www.esrl.noaa.gov/psd/people/don.murray/" target="_blank">http://www.esrl.noaa.gov/psd/people/don.murray/</a><br>
><br>
><br>
> --<br>
> Don Murray<br>
> NOAA/ESRL/PSD and CU-CIRES<br>
> <a href="tel:303-497-3596" value="+13034973596">303-497-3596</a><br>
> <a href="http://www.esrl.noaa.gov/psd/people/don.murray/" target="_blank">http://www.esrl.noaa.gov/psd/people/don.murray/</a><br>
_______________________________________________<br>
ncl-talk mailing list<br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
</div></div></blockquote></div><br></div>