<div dir="ltr"><div>I think, the reason is that <b>for gsn_define_colormap</b>, you need to 
add both background and foreground colours in the list when explicitly defining 
colours triplets. So, in your list of color triplets, the second entry should be "(/0.,0.,0./)".</div><div><br></div><div>Replace the colors variable in your script with following:</div><div><br></div><div>colors = (/"(/1.00, 1.00, 1.00/)","(/0.,0.,0./)", "(/0.98,  0.99,  1.00/)", \<br>"(/0.98,  0.99,  1.00/)", "(/0.96,  0.98,  0.99/)", \<br>"(/0.95,  0.98,  0.99/)", "(/0.94,  0.98,  0.99/)", \<br>"(/0.93,  0.97,  0.99/)", "(/0.92,  0.97,  0.99/)", \<br>"(/0.91,  0.96,  0.99/)", "(/0.90,  0.96,  0.99/)", \<br>"(/0.89,  0.96,  0.99/)", "(/0.88,  0.95,  0.99/)", \<br>"(/0.87,  0.95,  0.98/)", "(/0.86,  0.94,  0.98/)", \<br>"(/0.85,  0.94,  0.98/)", "(/0.84,  0.94,  0.98/)", \<br>"(/0.83,  0.93,  0.98/)", "(/0.82,  0.93,  0.98/)", \<br>"(/0.81,  0.92,  0.98/)", "(/0.80,  0.92,  0.98/)", \<br>"(/0.79,  0.92,  0.98/)", "(/0.78,  0.91,  0.98/)", \<br>"(/0.77,  0.91,  0.98/)", "(/0.76,  0.90,  0.98/)", \<br>"(/0.74,  0.90,  0.98/)", "(/0.74,  0.90,  0.98/)", \<br>"(/0.72,  0.89,  0.97/)", "(/0.71,  0.89,  0.97/)", \<br>"(/0.70,  0.89,  0.97/)", "(/0.69,  0.88,  0.97/)", \<br>"(/0.69,  0.88,  0.97/)", "(/0.67,  0.87,  0.97/)", \<br>"(/0.66,  0.87,  0.97/)", "(/0.65,  0.87,  0.97/)", \<br>"(/0.64,  0.86,  0.97/)", "(/0.63,  0.86,  0.96/)", \<br>"(/0.61,  0.85,  0.96/)", "(/0.60,  0.84,  0.96/)", \<br>"(/0.59,  0.83,  0.96/)", "(/0.58,  0.83,  0.95/)", \<br>"(/0.58,  0.82,  0.94/)", "(/0.57,  0.81,  0.94/)", \<br>"(/0.56,  0.80,  0.94/)", "(/0.55,  0.80,  0.93/)", \<br>"(/0.54,  0.79,  0.92/)", "(/0.53,  0.78,  0.92/)", \<br>"(/0.52,  0.77,  0.92/)", "(/0.51,  0.76,  0.91/)", \<br>"(/0.50,  0.75,  0.90/)", "(/0.49,  0.74,  0.90/)", \<br>"(/0.49,  0.74,  0.90/)", "(/0.48,  0.73,  0.89/)", \<br>"(/0.47,  0.72,  0.89/)", "(/0.46,  0.71,  0.88/)", \<br>"(/0.45,  0.70,  0.88/)", "(/0.44,  0.70,  0.87/)", \<br>"(/0.43,  0.69,  0.87/)", "(/0.42,  0.68,  0.86/)", \<br>"(/0.41,  0.67,  0.86/)", "(/0.40,  0.67,  0.85/)", \<br>"(/0.40,  0.66,  0.85/)", "(/0.39,  0.65,  0.85/)", \<br>"(/0.38,  0.64,  0.84/)", "(/0.37,  0.63,  0.83/)", \<br>"(/0.36,  0.62,  0.83/)", "(/0.35,  0.61,  0.83/)", \<br>"(/0.34,  0.61,  0.82/)", "(/0.33,  0.60,  0.81/)", \<br>"(/0.32,  0.59,  0.81/)", "(/0.31,  0.58,  0.81/)", \<br>"(/0.30,  0.58,  0.80/)", "(/0.30,  0.57,  0.80/)", \<br>"(/0.28,  0.55,  0.79/)", "(/0.28,  0.56,  0.77/)", \<br>"(/0.28,  0.56,  0.76/)", "(/0.28,  0.56,  0.74/)", \<br>"(/0.28,  0.57,  0.73/)", "(/0.28,  0.57,  0.72/)", \<br>"(/0.28,  0.58,  0.70/)", "(/0.28,  0.58,  0.69/)", \<br>"(/0.28,  0.58,  0.67/)", "(/0.28,  0.59,  0.66/)", \<br>"(/0.28,  0.60,  0.65/)", "(/0.28,  0.60,  0.63/)", \<br>"(/0.28,  0.60,  0.62/)", "(/0.28,  0.61,  0.61/)", \<br>"(/0.28,  0.61,  0.59/)", "(/0.28,  0.61,  0.58/)", \<br>"(/0.28,  0.62,  0.56/)", "(/0.28,  0.62,  0.55/)", \<br>"(/0.28,  0.63,  0.54/)", "(/0.28,  0.63,  0.52/)", \<br>"(/0.28,  0.63,  0.51/)", "(/0.28,  0.64,  0.49/)", \<br>"(/0.28,  0.64,  0.48/)", "(/0.28,  0.65,  0.47/)", \<br>"(/0.28,  0.65,  0.45/)", "(/0.28,  0.65,  0.44/)", \<br>"(/0.28,  0.66,  0.42/)", "(/0.28,  0.66,  0.41/)", \<br>"(/0.28,  0.67,  0.40/)", "(/0.28,  0.71,  0.38/)", \<br>"(/0.28,  0.68,  0.37/)", "(/0.28,  0.68,  0.35/)", \<br>"(/0.28,  0.69,  0.34/)", "(/0.28,  0.69,   0.32/)", \<br>"(/0.28,  0.69,  0.31/)", "(/0.28,  0.70,  0.30/)", \<br>"(/0.28,  0.70,  0.27/)"/)<br><br></div><div><br></div><div><br></div><div><br> </div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jun 1, 2018 at 3:12 AM, Lara Quitián Hernández <span dir="ltr"><<a href="mailto:laraquitianhernandez@gmail.com" target="_blank">laraquitianhernandez@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello, <div><br></div><div>I just found the solution! If you use the <b>cnFillPalette</b> instead of <b>gsn_define_colormap</b> function, it works! I do not know the reason because it should also work with the "gsn" function (as the documentation says), but at least it works.</div><div><br></div><div>Regards, </div><div>Lara</div></div><div class="gmail_extra"><br><div class="gmail_quote">2018-06-01 11:50 GMT+02:00 Lara Quitián Hernández <span dir="ltr"><<a href="mailto:laraquitianhernandez@gmail.com" target="_blank">laraquitianhernandez@gmail.<wbr>com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">OK. I will ask them. <div><br></div><div>Thanks, </div><span class="m_-5913047182864978396HOEnZb"><font color="#888888"><div>Lara</div></font></span></div><div class="m_-5913047182864978396HOEnZb"><div class="m_-5913047182864978396h5"><div class="gmail_extra"><br><div class="gmail_quote">2018-06-01 11:47 GMT+02:00 Guido Cioni <span dir="ltr"><<a href="mailto:guidocioni@gmail.com" target="_blank">guidocioni@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word;line-break:after-white-space">SOrry, I've just realized that you're using WRF functions, which I actually don't know that much and use to cause many problems when they are used in a slightly different configuration that they were intended to...<div>That may be the cause since I've used a similar setup, besides the WRF functions, and it was working. Maybe you should write to wrf-ncl-help? </div><div><div><div class="m_-5913047182864978396m_3057362745791219423h5"><div><br><blockquote type="cite"><div>On 1. Jun 2018, at 11:45, Guido Cioni <<a href="mailto:guidocioni@gmail.com" target="_blank">guidocioni@gmail.com</a>> wrote:</div><br class="m_-5913047182864978396m_3057362745791219423m_7045407783833155245Apple-interchange-newline"><div><div style="word-wrap:break-word;line-break:after-white-space">Hey Lara,<div>any chance you could also send the file? Or is it too large? <br><div><br><blockquote type="cite"><div><div class="h5"><div>On 1. Jun 2018, at 11:43, Lara Quitián Hernández <<a href="mailto:laraquitianhernandez@gmail.com" target="_blank">laraquitianhernandez@gmail.co<wbr>m</a>> wrote:</div><br class="m_-5913047182864978396m_3057362745791219423m_7045407783833155245Apple-interchange-newline"></div></div><div><div><div class="h5"><div dir="ltr">Hello, <div><br></div><div>I don't get any warning or error message...It's really weird.</div><div><br></div><div>Of course, I attach my script. Thank you very much.</div><div><br></div><div>Regards, </div><div>Lara</div></div><div class="gmail_extra"><br><div class="gmail_quote">2018-06-01 11:29 GMT+02:00 Guido Cioni <span dir="ltr"><<a href="mailto:guidocioni@gmail.com" target="_blank">guidocioni@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word;line-break:after-white-space">Lara, this is indeed pretty weird...<div>Do you get any warning while running the script?</div><div>Also, could you attach the script so that we can take a look?</div><div><br></div><div>Thanks <br><div><br><blockquote type="cite"><span><div>On 1. Jun 2018, at 11:19, Lara Quitián Hernández <<a href="mailto:laraquitianhernandez@gmail.com" target="_blank">laraquitianhernandez@gmail.co<wbr>m</a>> wrote:</div><br class="m_-5913047182864978396m_3057362745791219423m_7045407783833155245m_-3831108677414669286Apple-interchange-newline"></span><div><div dir="ltr"><span>Good morning, <div><br></div><div>I'm trying to display a particular field using a combination of RGB triplets. I have already defined them:</div><div><b><br></b></div></span><div><span><div><b>colors = (/"(/1.00, 1.00, 1.00/)", "(/0.98,  0.99,  1.00/)", \</b></div><div><b>"(/0.98,  0.99,  1.00/)", "(/0.96,  0.98,  0.99/)", \</b></div><div><b>"(/0.95,  0.98,  0.99/)", "(/0.94,  0.98,  0.99/)", \</b></div><div><b>"(/0.93,  0.97,  0.99/)", "(/0.92,  0.97,  0.99/)", \</b></div><div><b>"(/0.91,  0.96,  0.99/)", "(/0.90,  0.96,  0.99/)", \</b></div><div><b>"(/0.89,  0.96,  0.99/)", "(/0.88,  0.95,  0.99/)", \</b></div><div><b>"(/0.87,  0.95,  0.98/)", "(/0.86,  0.94,  0.98/)", \</b></div><div><b>"(/0.85,  0.94,  0.98/)", "(/0.84,  0.94,  0.98/)"/)</b></div><div><b><br></b></div><div><b>gsn_define_colormap(wks,colors<wbr>)<br></b></div><div><b><br></b></div><div>However, I obtain a figure without title, tickmarks, time stamp, labelbar information, etc.</div><div><br></div></span><div><div><span id="m_-5913047182864978396m_3057362745791219423m_7045407783833155245m_-3831108677414669286cid:ii_jhvr2ic20_163ba9e79338f259"><850hPa_ETH_416_2014-10-19_18:<wbr>00:00.png></span></div><span><div>The issue is that when I use a predefined colormap without changing any other variable in my script:<br></div></span></div><span><div><br></div><div><b>gsn_define_colormap(wks,"White<wbr>BlueGreenYellowRed")<br></b></div><div><br></div><div>I obtain a complete figure with all predefined settings. Both images are generated with the same script, only by modifying the colormap function. What's going on?</div><div><br></div></span><div><div><span id="m_-5913047182864978396m_3057362745791219423m_7045407783833155245m_-3831108677414669286cid:ii_jhvr4fjs1_163ba9fd6b4579c5"><850hPa_ETH2_416_2014-10-19_18<wbr>:00:00.png></span><br></div><br></div><span><div>Thanks in advance. </div><div><br></div><div>Regards, </div><div>Lara</div><div><br></div>- <br><div class="m_-5913047182864978396m_3057362745791219423m_7045407783833155245m_-3831108677414669286gmail_signature"><div dir="ltr"><div><div dir="ltr"><img src="https://docs.google.com/uc?export=download&id=0B5glieJcogGocjdGWHA3NWIwdmc&revid=0B5glieJcogGocU45NUpENzV4UWhCWk9tb1ZGdXB5MEtGYjJjPQ"><br><div><font><br></font></div><div><b><font><span style="font-size:12.8px">Lara Quitián Hernández, </span></font><span style="font-size:12.8px">PhD Student</span></b><font><b><br style="font-size:12.8px"></b><span style="font-size:12.8px">Departamento de Física de la Tierra, Astronomía y Astrofísica</span><br style="font-size:12.8px"><span style="font-size:12.8px">Facultad de Ciencias Físicas</span><br style="font-size:12.8px"><span style="font-size:13px"><a href="https://maps.google.com/?q=Ciudad+Universitaria,+Plaza+Ciencias,+1+28040+Madrid.+Spain&entry=gmail&source=g" target="_blank">Ciudad Universitaria, Plaza Ciencias, 1</a></span></font></div><div><font><span style="font-size:12.8px"><a href="https://maps.google.com/?q=Ciudad+Universitaria,+Plaza+Ciencias,+1+28040+Madrid.+Spain&entry=gmail&source=g" target="_blank">28040 Madrid. Spain</a></span><br style="font-size:12.8px"><span style="font-size:12.8px">Email: </span><a href="mailto:mlunar@aemet.es" style="font-size:12.8px" target="_blank">lquitian@ucm.es</a><br style="font-size:12.8px"></font><br></div></div></div></div></div>
</span></div></div>
______________________________<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" target="_blank">http://mailman.ucar.edu/mailma<wbr>n/listinfo/ncl-talk</a><span class="m_-5913047182864978396m_3057362745791219423m_7045407783833155245HOEnZb"><font color="#888888"><br></font></span></div></blockquote></div><span class="m_-5913047182864978396m_3057362745791219423m_7045407783833155245HOEnZb"><font color="#888888"><br><div>
<div style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><br class="m_-5913047182864978396m_3057362745791219423m_7045407783833155245m_-3831108677414669286Apple-interchange-newline">Guido Cioni</div><div style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><a href="http://guidocioni.altervista/" target="_blank">http://guidocioni.altervista</a>.o<wbr>rg</div>

</div>
<br></font></span></div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="m_-5913047182864978396m_3057362745791219423m_7045407783833155245gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><img src="https://docs.google.com/uc?export=download&id=0B5glieJcogGocjdGWHA3NWIwdmc&revid=0B5glieJcogGocU45NUpENzV4UWhCWk9tb1ZGdXB5MEtGYjJjPQ"><br><div><font><br></font></div><div><b><font><span style="font-size:12.8px">Lara Quitián Hernández, </span></font><span style="font-size:12.8px">PhD Student</span></b><font><b><br style="font-size:12.8px"></b><span style="font-size:12.8px">Departamento de Física de la Tierra, Astronomía y Astrofísica</span><br style="font-size:12.8px"><span style="font-size:12.8px">Facultad de Ciencias Físicas</span><br style="font-size:12.8px"><span style="font-size:13px"><a href="https://maps.google.com/?q=Ciudad+Universitaria,+Plaza+Ciencias,+1+28040+Madrid.+Spain&entry=gmail&source=g" target="_blank">Ciudad Universitaria, Plaza Ciencias, 1</a></span></font></div><div><font><span style="font-size:12.8px"><a href="https://maps.google.com/?q=Ciudad+Universitaria,+Plaza+Ciencias,+1+28040+Madrid.+Spain&entry=gmail&source=g" target="_blank">28040 Madrid. Spain</a></span><br style="font-size:12.8px"><span style="font-size:12.8px">Email: </span><a href="mailto:mlunar@aemet.es" style="font-size:12.8px" target="_blank">lquitian@ucm.es</a><br style="font-size:12.8px"></font><br></div></div></div></div></div>
</div>
</div></div><span id="m_-5913047182864978396m_3057362745791219423m_7045407783833155245cid:62A26E95-BE90-4F0D-8596-9505B7506ABB@mpimet.mpg.de"><ETH_lara.ncl></span></div></blockquote></div><br><div>
<div style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><br class="m_-5913047182864978396m_3057362745791219423m_7045407783833155245Apple-interchange-newline">Guido Cioni</div><div style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><a href="http://guidocioni.altervista/" target="_blank">http://guidocioni.altervista</a>.o<wbr>rg</div>

</div>
<br></div></div></div></blockquote></div><br></div></div><span class="m_-5913047182864978396m_3057362745791219423HOEnZb"><font color="#888888"><div>
<div style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><br class="m_-5913047182864978396m_3057362745791219423m_7045407783833155245Apple-interchange-newline">Guido Cioni</div><div style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><a href="http://guidocioni.altervista" target="_blank">http://guidocioni.altervista</a>.o<wbr>rg</div>

</div>
<br></font></span></div></div></blockquote></div><span class=""><br><br clear="all"><div><br></div>-- <br><div class="m_-5913047182864978396m_3057362745791219423gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><img src="https://docs.google.com/uc?export=download&id=0B5glieJcogGocjdGWHA3NWIwdmc&revid=0B5glieJcogGocU45NUpENzV4UWhCWk9tb1ZGdXB5MEtGYjJjPQ"><br><div><font color="#000000"><br></font></div><div><b><font color="#000000"><span style="font-size:12.8px">Lara Quitián Hernández, </span></font><span style="color:rgb(0,0,0);font-size:12.8px">PhD Student</span></b><font color="#000000"><b><br style="font-size:12.8px"></b><span style="font-size:12.8px">Departamento de Física de la Tierra, Astronomía y Astrofísica</span><br style="font-size:12.8px"><span style="font-size:12.8px">Facultad de Ciencias Físicas</span><br style="font-size:12.8px"><span style="font-size:13px">Ciudad Universitaria, Plaza Ciencias, 1</span></font></div><div><font color="#000000"><span style="font-size:12.8px">28040 Madrid. Spain</span><br style="font-size:12.8px"><span style="font-size:12.8px">Email: </span><a href="mailto:mlunar@aemet.es" style="font-size:12.8px" target="_blank">lquitian@ucm.es</a><br style="font-size:12.8px"></font><br></div></div></div></div></div>
</span></div>
</div></div></blockquote></div><span class=""><br><br clear="all"><div><br></div>-- <br><div class="m_-5913047182864978396gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><img src="https://docs.google.com/uc?export=download&id=0B5glieJcogGocjdGWHA3NWIwdmc&revid=0B5glieJcogGocU45NUpENzV4UWhCWk9tb1ZGdXB5MEtGYjJjPQ"><br><div><font color="#000000"><br></font></div><div><b><font color="#000000"><span style="font-size:12.8px">Lara Quitián Hernández, </span></font><span style="color:rgb(0,0,0);font-size:12.8px">PhD Student</span></b><font color="#000000"><b><br style="font-size:12.8px"></b><span style="font-size:12.8px">Departamento de Física de la Tierra, Astronomía y Astrofísica</span><br style="font-size:12.8px"><span style="font-size:12.8px">Facultad de Ciencias Físicas</span><br style="font-size:12.8px"><span style="font-size:13px">Ciudad Universitaria, Plaza Ciencias, 1</span></font></div><div><font color="#000000"><span style="font-size:12.8px">28040 Madrid. Spain</span><br style="font-size:12.8px"><span style="font-size:12.8px">Email: </span><a href="mailto:mlunar@aemet.es" style="font-size:12.8px" target="_blank">lquitian@ucm.es</a><br style="font-size:12.8px"></font><br></div></div></div></div></div>
</span></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>