<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Alternate suggestion. &nbsp; Would require you do some tricks on your colorbar. &nbsp;Maybe make a separate legend instead of using the colorbar.&nbsp;<div class=""><br class=""></div><div class="">Put white in between each level with an extra cnlevel as well. &nbsp;The gradient will then be to white rather than through other colors. &nbsp;This would mean you have a white border between adjacent categories but you don’t seem to have touching categories anyway. &nbsp;</div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><div class=""><br class=""></div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On 18 Feb 2016, at 11:39, Alan Brammer &lt;<a href="mailto:abrammer@albany.edu" class="">abrammer@albany.edu</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html charset=windows-1252" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Ah you’re right. &nbsp;My bad, Thought I’d done exactly this and succeeded, but evidently not. &nbsp;<div class=""><br class=""></div><div class="">I tried a couple of things with some dummy data but couldn’t find a solution. &nbsp;</div><div class="">My last suggestion would be regrid the data using a nearest neighbour method to a higher resolution then plot that as raster. &nbsp;Make the blocks small enough that it’s aesthetically pleasing. &nbsp;</div><div class=""><br class=""></div><div class=""><div class="">popmask_3.ncl &nbsp;on the categorical examples page does this the brute force way.&nbsp;<a href="https://www.ncl.ucar.edu/Applications/classification.shtml" class="">https://www.ncl.ucar.edu/Applications/classification.shtml</a></div><div class="">Or the ESMF regridding pages have nearest neighbour methods.&nbsp;</div></div><div class=""><br class=""></div><div class="">Maybe someone else has a more elegant suggestion. &nbsp;</div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""><div class=""><blockquote type="cite" class=""><div class="">On 18 Feb 2016, at 11:15, &lt;<a href="mailto:paraskevi.giannakaki@giub.unibe.ch" class="">paraskevi.giannakaki@giub.unibe.ch</a>&gt; &lt;<a href="mailto:paraskevi.giannakaki@giub.unibe.ch" class="">paraskevi.giannakaki@giub.unibe.ch</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><div style="font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; direction: ltr; font-family: Tahoma; font-size: 10pt;" class="">Hi Alan,<br class=""><br class="">Thank you for your quick response. I have already tried this but it adds the contours with the cnRasterSmoothingOn = True command.<br class=""><br class=""><div class="">Evi<span class="Apple-converted-space">&nbsp;</span><br class=""><br class=""><div class="BodyFragment"><font size="2" class=""><span style="font-size: 10pt;" class=""><div class="PlainText">Paraskevi Giannakaki , PhD<span class="Apple-converted-space">&nbsp;</span><br class="">Climate impact group,<br class="">Institute of Geography, University of Bern<br class="">Hallerstrasse 12, 5th floor<br class="">CH-3012 Bern<br class="">Mail:<span class="Apple-converted-space">&nbsp;</span><a href="mailto:paraskevi.giannakaki@giub.unibe.ch" class="">paraskevi.giannakaki@giub.unibe.ch</a></div></span></font></div></div><div style="font-family: 'Times New Roman'; font-size: 16px;" class=""><hr tabindex="-1" class=""><div id="divRpF750673" style="direction: ltr;" class=""><font face="Tahoma" size="2" class=""><b class="">Von:</b><span class="Apple-converted-space">&nbsp;</span>Alan Brammer [<a href="mailto:abrammer@albany.edu" class="">abrammer@albany.edu</a>]<br class=""><b class="">Gesendet:</b><span class="Apple-converted-space">&nbsp;</span>Donnerstag, 18. Februar 2016 17:12<br class=""><b class="">An:</b><span class="Apple-converted-space">&nbsp;</span>Giannakaki, Paraskevi (GIUB)<br class=""><b class="">Cc:</b><span class="Apple-converted-space">&nbsp;</span><a href="mailto:ncl-talk@ucar.edu" class="">ncl-talk@ucar.edu</a><br class=""><b class="">Betreff:</b><span class="Apple-converted-space">&nbsp;</span>Re: [ncl-talk] Remove contours around objects<br class=""></font><br class=""></div><div class=""></div><div class="">try&nbsp;<div class="">cnRasterSmoothingOn = True</div><div class="">with&nbsp;</div><div class="">cnFillMode = “RasterFill”</div><div class=""><br class=""></div><div class="">It will make it less “blocky” without adding the gradients that areafill adds. &nbsp;</div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><a href="x-msg://48/redir.aspx?REF=x0FsX-OycJBMyxWNEoPA-ibtqwBYkD9NnkPXOYoHiUgb1FCVfjjTCAFodHRwczovL3d3dy5uY2wudWNhci5lZHUvQXBwbGljYXRpb25zL3Jhc3Rlci5zaHRtbA.." class="" target="_blank">https://www.ncl.ucar.edu/Applications/raster.shtml</a></div><div class=""><a href="x-msg://48/redir.aspx?REF=Zd7alXS4tWQ7f-J6q4zBve7SDGeG8xb1Qy8jifD7G_Mb1FCVfjjTCAFodHRwczovL3d3dy5uY2wudWNhci5lZHUvRG9jdW1lbnQvR3JhcGhpY3MvUmVzb3VyY2VzL2NuLnNodG1sI2NuUmFzdGVyU21vb3RoaW5nT24." class="" target="_blank">https://www.ncl.ucar.edu/Document/Graphics/Resources/cn.shtml#cnRasterSmoothingOn</a></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">Alan</div><div class=""><br class=""></div><div class="">&nbsp;<br class=""><div class=""><blockquote type="cite" class=""><div class="">On 18 Feb 2016, at 11:07,<span class="Apple-converted-space">&nbsp;</span><a href="x-msg://48/redir.aspx?REF=K8a4JF_Jcv6MoIZTkVr8JcqOypSU7MSXhTiKHNYJ0uKFNVOVfjjTCAFtYWlsdG86cGFyYXNrZXZpLmdpYW5uYWtha2lAZ2l1Yi51bmliZS5jaA.." class="" target="_blank">paraskevi.giannakaki@giub.unibe.ch</a><span class="Apple-converted-space">&nbsp;</span>wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="" style="font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; direction: ltr; font-family: Tahoma; font-size: 10pt;"><div class="" style="font-family: 'Times New Roman'; font-size: 16px;"><div class=""><div class="" style="direction: ltr; font-family: Tahoma; font-size: 10pt;"><br class="Apple-interchange-newline">Dear all,<br class=""><br class="">I try to plot some objects that have integer values between 1 and 40. My problem is that instead of one-color objects I have a contour around my objects with the previous color from the color-table (see the attached figure). I have tried different tricks such as insert white color between the values of the objects but still I have the same result. Only with<span class="Apple-converted-space">&nbsp;</span><a href="x-msg://48/UrlBlockedError.aspx" class="" target="_blank"><em class="">cnFillMode</em></a><span class="Apple-converted-space">&nbsp;</span>= "RasterFill" I do not see this contour but then the plots are not so nice. How can I get rid of these contours? Thank you very much in advance for your time.<span class="Apple-converted-space">&nbsp;</span><br class=""><br class="">NCL version 6.0.0<br class="">(Ubuntu 4.8.2-19ubuntu1) 4.8.2<br class=""><div class=""><br class="">Best regards,<br class="">Evi<br class=""><br class=""><div class="BodyFragment"><font class="" size="2"><span class="" style="font-size: 10pt;"><div class="PlainText">Paraskevi Giannakaki , PhD<span class="Apple-converted-space">&nbsp;</span><br class="">Climate impact group,<br class="">Institute of Geography, University of Bern<br class="">Hallerstrasse 12, 5th floor<br class="">CH-3012 Bern<br class="">Mail:<span class="Apple-converted-space">&nbsp;</span><a href="x-msg://48/redir.aspx?REF=K8a4JF_Jcv6MoIZTkVr8JcqOypSU7MSXhTiKHNYJ0uKFNVOVfjjTCAFtYWlsdG86cGFyYXNrZXZpLmdpYW5uYWtha2lAZ2l1Yi51bmliZS5jaA.." class="" target="_blank">paraskevi.giannakaki@giub.unibe.ch</a></div></span></font></div></div></div></div></div></div><span id="cid:5C620E3F-7EFA-4D8F-86CB-D5823DA601A6@eas.albany.edu" class="">&lt;test_plot.ncl&gt;</span><span id="cid:5B31C151-9519-4323-A0F4-21E48A4705C8@eas.albany.edu" class="">&lt;colortest.png&gt;</span><span class="" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; float: none; display: inline !important;">_______________________________________________</span><br class="" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"><span class="" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; float: none; display: inline !important;">ncl-talk mailing list</span><br class="" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"><a href="x-msg://48/redir.aspx?REF=xqhKvSimClETWsLIZr9Dv5xTU03A0Ys-CAH86F8Tb4iFNVOVfjjTCAFtYWlsdG86bmNsLXRhbGtAdWNhci5lZHU." class="" target="_blank" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;">ncl-talk@ucar.edu</a><br class="" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"><span class="" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; float: none; display: inline !important;">List instructions, subscriber options, unsubscribe:</span><br class="" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"><a href="x-msg://48/redir.aspx?REF=kbMUsphwQSpKYFYLUGBQv3_19R6fueOB1HNoqUYUyUiFNVOVfjjTCAFodHRwOi8vbWFpbG1hbi51Y2FyLmVkdS9tYWlsbWFuL2xpc3RpbmZvL25jbC10YWxr" class="" target="_blank" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a></div></blockquote></div><br class=""></div></div></div></div><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">_______________________________________________</span><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">ncl-talk mailing list</span><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><a href="mailto:ncl-talk@ucar.edu" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">ncl-talk@ucar.edu</a><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">List instructions, subscriber options, unsubscribe:</span><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a></div></blockquote></div><br class=""></div></div></div></div></blockquote></div><br class=""></div></div></body></html>