<div dir="ltr"><div><div><div><div><div><div><div>Hi Rashed,<br></div>If I understand the documentation correctly, one cannot pattern fill when cnFillMode = &quot;CellFill&quot; (or &quot;RasterFill&quot;). That is why you are getting black boxes.<br><br></div>A couple of weeks ago Dave Brown sent a reply to a ncl-talk query of Frank <span name="Kreienkamp Frank">Kreienkamp who was asking a similar type of question. From Dave&#39;s reply:<br></span><br><div>
<p class="MsoNormal">A quirk, or perhaps a feature, of the AreaFill 
method is that the cells immediately adjoining an area of missing values
 are also treated as missing. In your example plot this reduces the 
stippled area to a fraction of what one might reasonably
 suppose it should be. One way to work around this is to eliminate the 
missing values. The idea is to set the missing values to a value outside
 the good value range, to a value that creates a plausible gradient from
 the nearest good value. Then set up the levels
 and level colors such that the formerly missing values will be drawn as
 a transparent color.<br></p></div><br><br></div>Dave&#39;s suggestion is a good way to proceed with your issue. I have attached a modified version of your script, along with two .gif images. The first image shows the significant grid boxes (colored black) and the gray stippling overlaid on one another. With some testing one should be able to get gray stippling on each black grid box. The second image shows your plot with the stippling applied.<br></div><br></div>Note that I modified your script to no longer use ShadeGtContour to give complete direct control of the stippling resources.  It took some trial and error with setting the _FillValue attribute, along with the cnFillScaleF and cnFillDotSizeF resources (lines 69-72). You will likely have to modify those settings if your stippling field changes. I commented out lines 64-66 and 74-77 as those were used to create the (trial and error) plot #1. <br><br></div>Hope that helps.. If your have any further questions please respond to the ncl-talk email list.<br></div>Adam<br><div><div><div><div><div><br></div></div></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Apr 13, 2015 at 9:25 PM, Rashed Mahmood <span dir="ltr">&lt;<a href="mailto:rashidcomsis@gmail.com" target="_blank">rashidcomsis@gmail.com</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"><br><div class="gmail_quote"><div dir="ltr"><div><div><div><div><div><div><div>Hi all,<br></div><div>Sorry if this message is repeated, last message was bounced back perhaps because of the size of attached files, Below is my question.<br></div><div><br><br></div>I have been trying to use &quot;ShadeGtContour&quot; to get the stiplling pattern on top of a map plot.<br></div>However the points do not appear on the plot, perhaps because these data points are very few and sparse. Please see the top plot in attached figure.<br><br></div>I could plot the points on the same map plot using &quot;CellFill&quot; resource, but I would like them to appear as dots rather than filled boxes. See the bottom plot in attached figure.<br><br></div>The script and the two input files are attached that can used to produce the problem.<br></div>Can anyone give some suggestions on how to get stiplling pattern when the data points are few and sparse.<br><br></div>Thanks<span class="HOEnZb"><font color="#888888"><span><font color="#888888"><br></font></span></font></span></div><span class="HOEnZb"><font color="#888888"><span><font color="#888888">Rashed<br></font></span></font></span></div>
</div><br></div>
<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></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div><div><span><font color="#888888">Adam Phillips <br></font></span></div><span><font color="#888888">Associate Scientist,  </font></span><span><font color="#888888">Climate and Global Dynamics Laboratory, NCAR<br></font></span></div></div><div><span><font color="#888888"><a href="http://www.cgd.ucar.edu/staff/asphilli/" target="_blank">www.cgd.ucar.edu/staff/asphilli/</a>   </font></span><span><font color="#888888">303-497-1726 </font></span></div><span><font color="#888888"></font></span><div><div><span><font color="#888888"><br></font></span><div><span><font color="#888888"><a href="http://www.cgd.ucar.edu/staff/asphilli" target="_blank"></a></font></span></div></div></div></div></div></div></div></div></div></div></div>
</div>