<div dir="ltr"><div><div><div><div><div><div><div>Hi Lin,<br></div>I have come to the same conclusion that you have: That there are not enough grids for this method to effectively work. Previously this method has worked well on much larger grids but at this scale it is obviously not working. I have a test script that I passed on to a NCL developer for them to look at, but I am not hopeful. It looks like the only method that would work would be to make repeated targeted calls to gsn_add_polyline.<br><br></div>To answer your question, you are passing in 3 lons and 19 lats, and the input sizes of those two arrays must be the same when using gsn_add_text. Try this:<br><br>txres               = True<br>text                = new(dimsizes(sig),&quot;string&quot;)<br>text                = sig<br>lon                 = (/0.5,1.5,2.5/)<br>lat                 = ispan(0,18,1)<br>txres@txFontHeightF = 0.010<br>txres@txJust        = &quot;CenterCenter&quot;<br>dummy = new(dimsizes(arr),graphic)<br>do gg = 0,2<br>     do hh = 0,18<br>          dummy(hh,gg) = gsn_add_text(wks,plot(i),text(hh,gg),lon(gg),lat(hh),txres)<br>     end do<br>end do<br><br></div><div>(The other option to the above coding would be to create 3 arrays (lat,lon, and text) of size 57 containing the appropriate values. Then a single call to gsn_add_text would suffice.)<br></div><div><br></div><div>I put the above coding into my test script and I got the attached plot. Note that if you are paneling that you will not want to overwrite the dummy array each time through.. If you have 3 panels dummy could be an array of size (3,19,3) instead of above where it is just a (19,3).<br><br></div><div>Hope that all helps. <br></div><div>Adam<br> <br></div></div></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Aug 25, 2015 at 4:00 AM, xianglin72 <span dir="ltr">&lt;<a href="mailto:xianglin72@icloud.com" target="_blank">xianglin72@icloud.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 style="font:14px/1.5 &#39;Lucida Grande&#39;,&#39;\005fae\008f6f\0096c5\009ed1&#39;;color:#333"><p style="font:14px/1.5 &#39;Lucida Grande&#39;;margin:0">Hi, Adams</p><p style="font:14px/1.5 &#39;Lucida Grande&#39;;margin:0"><br></p><p style="font:14px/1.5 &#39;Lucida Grande&#39;;margin:0">     Thank you for the reply.  I&#39;ve tried another some times, but failed to get something.  I don&#39;t know how the NCL</p><p style="font:14px/1.5 &#39;Lucida Grande&#39;;margin:0">make the fill pattern exactly,  and I guess that there is not enough grids (only 19*3 grids ) in my plot,  so NCL can not</p><p style="font:14px/1.5 &#39;Lucida Grande&#39;;margin:0">deal with few grids correctly.</p><p style="font:14px/1.5 &#39;Lucida Grande&#39;;margin:0"></p><p style="line-height:1.5;margin:0px">     Here below is the data used in the first subplot , and you can see that no fill pattern were done for the 3rd column</p><p style="line-height:1.5;margin:0px">values. In  fact, I want all the grids with the values less than 0.05 to be filled with oblique lines.</p><p style="line-height:1.5;margin:0px"><br></p><p style="line-height:1.5;margin:0px">significance values for the trend</p><p style="line-height:1.5;margin:0px"><span style="line-height:1.5"> 0.055 0.055 0.000</span></p><p style="line-height:1.5;margin:0px"> 0.000 0.000 0.000</p><p style="line-height:1.5;margin:0px"> 0.000 0.055 0.000</p><p style="line-height:1.5;margin:0px"> 0.000 0.007 0.000</p><p style="line-height:1.5;margin:0px"> 0.055 0.055 0.000</p><p style="line-height:1.5;margin:0px"> 0.000 0.001 0.000</p><p style="line-height:1.5;margin:0px"> 0.055 0.000 0.000</p><p style="line-height:1.5;margin:0px"> 0.055 0.000 0.000</p><p style="line-height:1.5;margin:0px"> 0.000 0.055 0.000</p><p style="line-height:1.5;margin:0px"> 0.000 0.055 0.000</p><p style="line-height:1.5;margin:0px"> 0.000 0.037 0.000</p><p style="line-height:1.5;margin:0px"> 0.002 0.003 0.000</p><p style="line-height:1.5;margin:0px"> 0.000 0.055 0.000</p><p style="line-height:1.5;margin:0px"> 0.000 0.055 0.000</p><p style="line-height:1.5;margin:0px"> 0.000 0.055 0.001</p><p style="line-height:1.5;margin:0px"> 0.002 0.055 0.055</p><p style="line-height:1.5;margin:0px"> 0.001 0.055 0.000</p><p style="line-height:1.5;margin:0px"> 0.000 0.055 0.000</p><p style="line-height:1.5;margin:0px"> 0.000 0.000 0.002</p><div><br></div><p></p><span style="font:14px/1.5 &#39;Lucida Grande&#39;;color:#333"><div><span style="font:14px/1.5 &#39;Lucida Grande&#39;;color:#333">Besides, I want to ask one more question:</span></div><div><span style="font:14px/1.5 &#39;Lucida Grande&#39;;color:#333"><br></span></div><div><span style="font:14px/1.5 &#39;Lucida Grande&#39;;color:#333">I add the follwoing scripts to post all the values to the corresponding cells (so that I can understand why NCL can not contour correctly) :</span></div><div><div>        res@cnFillOn             = False</div><div>        plot(i)  = gsn_csm_contour(wks, sig, res)</div><div>       text                = new(dimsizes(sig),&quot;string&quot;)</div><div>        text                = sig</div><div>        lon                 = ispan(1,3,1)</div><div>        lat                 = ispan(1,19,1)</div><div>        txres               = True</div><div>        txres@txFontHeightF = 0.015</div><div>        txres@txJust        = &quot;CenterLeft&quot;</div><div>        dummy      = gsn_add_text(wks,plot(i),text,lat,lon,txres)</div></div><div>however, I got some error message as below:</div><div><div>fatal:Dimension sizes of left hand side and right hand side of assignment do not match</div><div>fatal:[&quot;Execute.c&quot;:7743]:Execute: Error occurred at or near line 5659 in file $NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl</div><div><span style="line-height:1.5">fatal:[&quot;Execute.c&quot;:7743]:Execute: Error occurred at or near line 118 in file dtr_sat_raster.ncl</span></div></div><div><span style="line-height:1.5"><br></span></div><div><span style="line-height:1.5"><br></span></div><div><span style="line-height:1.5"><br></span></div><div><span style="line-height:1.5">Lin </span></div><div><span style="font:14px/1.5 &#39;Lucida Grande&#39;;color:#333"><br></span></div><br></span><div style="font:12px/1.5 &#39;Lucida Grande&#39;;padding:2px 0 2px 0"><span style="color:#333;text-decoration:line-through;white-space:pre-wrap">                            </span> 原始邮件 <span style="color:#333;text-decoration:line-through;white-space:pre-wrap">                            </span></div><div style="font:12px/1.5 &#39;Lucida Grande&#39;;background:#efefef;color:#666666;padding:8px"><div><b style="color:#999">发件人:</b> Adam Phillips&lt;<a href="mailto:asphilli@ucar.edu" target="_blank">asphilli@ucar.edu</a>&gt;</div><div><b style="color:#999">收件人:</b> xianglin72&lt;<a href="mailto:xianglin72@icloud.com" target="_blank">xianglin72@icloud.com</a>&gt;</div><div><b style="color:#999">抄送:</b> <a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a>&lt;<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a>&gt;</div><div><b style="color:#999">发送时间:</b> 2015年8月25日(周二) 02:04</div><div><b style="color:#999">主题:</b> Fwd: [ncl-talk] Could I add some FillPatterns effect suchasobliquelines to a raster fill plot ?</div></div><br><div style="font:14px/1.5 &#39;Lucida Grande&#39;;color:#333"><div dir="ltr"><div><div>Hi Lin,<br></div><div>(ncl-talk included)<br></div><div>Method #2 is the way to go, and I still think you should be able to do it by modifying and using trial and error on the following lines:<br></div>sig           = where(sig.le.0.05,sig,0.06)<br>res2@cnLevels             = 0.05<br><br></div>For instance, I would try the following:<br>sig           = where(sig.le.0.05,sig,0.15)<br>res2@cnLevels             = 0.045  <br><div><br></div><div>and if that doesn&#39;t work try this:<br>sig           = where(sig.le.0.05,sig,0.055)<br>res2@cnLevels             = 0.045<br><br></div><div>You should notice the range of the the pattern fill changing.<br></div><div><div><br></div><div>You might have to try modifying the above two settings several times before you get it right, but it should be quite possible to match up the 2 plots.<br><br></div><div>I am also wondering whether this line is correct:<br>plot(i)  = gsn_csm_contour(wks, y, res)<br></div><div>I think it should be:<br>plot(i)  = gsn_csm_contour(wks, sig, res)<br></div><br><div>as you want to compare the exact same field raster and color filled to one pattern filled. The array y is based on this line:<br><div>y  = where(sig.le.0.05,dtr,-999.)  ; significant trend<br></div>and contains dtr data as opposed to sig data.<br></div><div><br></div><div>If you cannot get the plot or do not wish to go through the trial and error process you can attempt to draw polylines through each significant grid box, but as I indicated previously this can get tedious.<br></div><div><br>If you have any further questions please respond to ncl-talk.<br>Adam<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Aug 23, 2015 at 10:13 AM, xianglin72 <span dir="ltr">&lt;<a href="mailto:xianglin72@icloud.com" target="_blank">xianglin72@icloud.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="font:14px/1.5 &quot;Lucida Grande&quot;,&quot;\005fae\008f6f\0096c5\009ed1&quot;;color:rgb(51,51,51)"><p style="font:14px/1.5 &quot;Lucida Grande&quot;;margin:0px">Hi, Adams,</p><p style="font:14px/1.5 &quot;Lucida Grande&quot;;margin:0px"><br></p><p style="font:14px/1.5 &quot;Lucida Grande&quot;;margin:0px">    I&#39;ve tried for sometimes, but it seems that this problem is unresolvable.</p><p style="font:14px/1.5 &quot;Lucida Grande&quot;;margin:0px"><br></p><p style="font:14px/1.5 &quot;Lucida Grande&quot;;margin:0px">1、</p><p style="font:14px/1.5 &quot;Lucida Grande&quot;;margin:0px"> res@cnFillMode           = &quot;RasterFill&quot;  </p><p style="font:14px/1.5 &quot;Lucida Grande&quot;;margin:0px"> plot(i)  = gsn_csm_contour(wks, y, res)</p><div> opt = True</div><div> opt@gsnShadeFillType = &quot;pattern&quot;      ; pattern fill</div><div> opt@gsnShadeMid       = 3                   ; use pattern #2   </div><div> plot(i)    = gsn_contour_shade(plot(i), -0.01, 0.05, opt)</div><div>……..</div><div> no fillPattern will be done.</div><div><br></div><div> 2、 </div><div>      <span style="line-height:1.5">y                   = where(sig.le.0.05,dtr,-999.)  ; significant trend</span></div><div>      y@_FillValue  = -999.</div><div>      res@cnFillMode           = &quot;RasterFill&quot;  ; “CellFill“</div><div>      plot(i)  = gsn_csm_contour(wks, y, res)</div><div><br></div><div>      sig           = where(sig.le.0.05,sig,0.06)</div><div><div>       res2@cnFillMode         = &quot;AreaFill&quot;  ;&quot;AreaFill&quot;</div><div>       res2@cnMonoFillPattern  = True</div><div>       res2@cnFillPattern      = 3</div><div>       res2@cnMonoFillColor    = False</div><div>       res2@cnFillColors       = (/&quot;black&quot;,&quot;black&quot;,&quot;white&quot;,&quot;white&quot;/)</div><div>       res2@cnLevelSelectionMode = &quot;ExplicitLevels&quot;</div><div>       res2@cnLevels             = (/0.,0.05,0.1/)</div><div>       iplot    = gsn_csm_contour(wks, sig, res2)</div><div>       overlay(plot(i),iplot)</div></div><div>       …...</div><div>  Then the cnFillPattern can not be shown as preferred. (see the attached fig file,  All the significant values have been raster filled in the corresponding rectangular cell,  all the shaded lines should also be added within these cells as expected, )</div><div><br></div><div><br></div><div>Thanks</div><div><br></div><div>LIn</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div>     </div><div style="font:12px/1.5 &quot;Lucida Grande&quot;;padding:2px 0px"><span style="color:rgb(51,51,51);text-decoration:line-through;white-space:pre-wrap">                            </span> 原始邮件 <span style="color:rgb(51,51,51);text-decoration:line-through;white-space:pre-wrap">                            </span></div><div style="font:12px/1.5 &quot;Lucida Grande&quot;;background:rgb(239,239,239) none repeat scroll 0% 0%;color:rgb(102,102,102);padding:8px"><div><b style="color:rgb(153,153,153)">发件人:</b> Adam Phillips&lt;<a href="mailto:asphilli@ucar.edu" target="_blank">asphilli@ucar.edu</a>&gt;</div><div><b style="color:rgb(153,153,153)">收件人:</b> xianglin72&lt;<a href="mailto:xianglin72@icloud.com" target="_blank">xianglin72@icloud.com</a>&gt;</div><div><b style="color:rgb(153,153,153)">抄送:</b> <a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a>&lt;<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a>&gt;</div><div><b style="color:rgb(153,153,153)">发送时间:</b> 2015年8月23日(周日) 12:24</div><div><b style="color:rgb(153,153,153)">主题:</b> Re: [ncl-talk] Could I add some FillPatterns effect such asobliquelines to a raster fill plot ?</div></div><br><div style="font:14px/1.5 &quot;Lucida Grande&quot;;color:rgb(51,51,51)"><div dir="auto"><div>Hi Lin,</div><div>You are correct, you cannot raster fill and pattern fill at the same time. However, I remembered that I replied to someone with this issue in April. See the response here: </div><div><a href="http://mailman.ucar.edu/pipermail/ncl-talk/2015-April/002370.html" target="_blank">http://mailman.ucar.edu/pipermail/ncl-talk/2015-April/002370.html</a></div><div>In short: you need to manipulate the values of the boxes that are not hatched so that the pattern fill only covers the boxes that you want. Note in the example coding that the user had _FillValue(s); you may or may not have that set for the boxes you do not want pattern filled.</div><div><br></div><div>The above referenced method requires trial and error, but it is possible to do what you want.</div><div><br></div><div>An alternative to the above would be to make many calls to gsn_add_polyline, drawing a line across each grid box, but that method may be intensive to implement as well.</div><div><br></div><div>Good luck. If you have any other inquires please respond to ncl-talk.</div><div>Adam</div><div><br>On Aug 21, 2015, at 10:05 PM, xianglin72 &lt;<a href="mailto:xianglin72@icloud.com" target="_blank">xianglin72@icloud.com</a>&gt; wrote:<br><br></div><blockquote type="cite"><div><div style="font:14px/1.5 &quot;Lucida Grande&quot;,&quot;\005fae\008f6f\0096c5\009ed1&quot;;color:rgb(51,51,51)"><p style="font:14px/1.5 &quot;Lucida Grande&quot;;margin:0px">Hi, Adam</p><p style="font:14px/1.5 &quot;Lucida Grande&quot;;margin:0px"><br></p><p style="font:14px/1.5 &quot;Lucida Grande&quot;;margin:0px">      Thank you the reply.  I&#39;ve tried what you have told before sending the first mail( see the attached script), however, I can not get what you and I expect ( see the attached plot).</p><p style="font:14px/1.5 &quot;Lucida Grande&quot;;margin:0px">      I&#39;ve checked the explaination on the resource of &quot;raster fill&quot;, and found the following :</p><p style="font:14px/1.5 &quot;Lucida Grande&quot;;margin:0px"><span style="line-height:1.5"><br></span></p><p style="font:14px/1.5 &quot;Lucida Grande&quot;;margin:0px"><span style="line-height:1.5">    </span><span style="font-family:verdana,sans-serif;font-size:13px;line-height:16px;text-align:left">The following resources can be used to control fill features when</span><span style="font-family:verdana,sans-serif;font-size:13px;line-height:16px;text-align:left"> </span><a style="font-family:verdana,sans-serif;font-size:13px;line-height:16px;text-align:left;margin:0pt;padding:0pt;text-decoration:none;color:rgb(133,45,133)"><i style="margin:0pt;padding:0pt">cnFillMode</i></a><span style="font-family:verdana,sans-serif;font-size:13px;line-height:16px;text-align:left"> </span><span style="font-family:verdana,sans-serif;font-size:13px;line-height:16px;text-align:left">is set to</span><span style="font-family:verdana,sans-serif;font-size:13px;line-height:16px;text-align:left"> </span><code style="font-size:13px;line-height:16px;text-align:left;margin:0pt;padding:0pt">RasterFill</code><span style="font-family:verdana,sans-serif;font-size:13px;line-height:16px;text-align:left">:</span></p><ul style="margin:0px 0px 5px;padding:0pt;list-style-position:inside;color:rgb(0,0,0);font-family:verdana,sans-serif;font-size:13px;line-height:16px;text-align:left"><li style="margin:0px;padding:0px 0px 0px 25px;font-size:10pt;line-height:12pt;color:rgb(51,51,51)"><a style="margin:0pt;padding:0pt;text-decoration:none;color:rgb(133,45,133)"><i style="margin:0pt;padding:0pt">cnFillColors</i></a></li><li style="margin:0px;padding:0px 0px 0px 25px;font-size:10pt;line-height:12pt;color:rgb(51,51,51)"><a style="margin:0pt;padding:0pt;text-decoration:none;color:rgb(133,45,133)"><i style="margin:0pt;padding:0pt">cnGridBoundFillColor</i></a></li><li style="margin:0px;padding:0px 0px 0px 25px;font-size:10pt;line-height:12pt;color:rgb(51,51,51)"><a style="margin:0pt;padding:0pt;text-decoration:none;color:rgb(133,45,133)"><i style="margin:0pt;padding:0pt">cnMissingValFillColor</i></a></li><li style="margin:0px;padding:0px 0px 0px 25px;font-size:10pt;line-height:12pt;color:rgb(51,51,51)"><a style="margin:0pt;padding:0pt;text-decoration:none;color:rgb(133,45,133)"><i style="margin:0pt;padding:0pt">cnOutOfRangeFillColor</i></a></li><li style="margin:0px;padding:0px 0px 0px 25px;font-size:10pt;line-height:12pt;color:rgb(51,51,51)"><a style="margin:0pt;padding:0pt;text-decoration:none;color:rgb(133,45,133)"><i style="margin:0pt;padding:0pt">cnRasterSmoothingOn</i></a></li><li style="margin:0px;padding:0px 0px 0px 25px;font-size:10pt;line-height:12pt;color:rgb(51,51,51)"><a style="margin:0pt;padding:0pt;text-decoration:none;color:rgb(133,45,133)"><i style="margin:0pt;padding:0pt">cnRasterMinCellSizeF</i></a></li><li style="margin:0px;padding:0px 0px 0px 25px;font-size:10pt;line-height:12pt;color:rgb(51,51,51)"><a style="margin:0pt;padding:0pt;text-decoration:none;color:rgb(133,45,133)"><i style="margin:0pt;padding:0pt">cnRasterSampleFactorF</i></a></li><li style="margin:0px;padding:0px 0px 0px 25px;font-size:10pt;line-height:12pt;color:rgb(51,51,51)"><i style="margin:0pt;padding:0pt;text-decoration:none;color:rgb(133,45,133)"><a style="margin:0pt;padding:0pt;text-decoration:none;color:rgb(133,45,133)">cnRasterCellSizeF</a></i></li></ul><div style="text-align:left"><font face="verdana, sans-serif"><span style="font-size:13px;line-height:16px"><br></span></font></div><p style="font:14px/1.5 &quot;Lucida Grande&quot;;margin:0px"><span style="line-height:1.5">    So you can find that the cnMonoFillColor and cnFillPattern can not work for this mode, which I&#39;ve said in the first mail.</span></p><p style="font:14px/1.5 &quot;Lucida Grande&quot;;margin:0px"><span style="line-height:1.5"><br></span></p><p style="font:14px/1.5 &quot;Lucida Grande&quot;;margin:0px"><span style="line-height:1.5">    Since the &quot;AreaFill&quot; mode can not get the same effect and the &quot;</span><span style="line-height:1.5">cnFillPattern&quot; resource can not be used for &quot;CellFill&quot; and</span></p><p style="font:14px/1.5 &quot;Lucida Grande&quot;;margin:0px">&quot;rasterfill&quot; mode, I still don&#39;t know how to add some shading effect for the chosen raster grids.  </p><p style="font:14px/1.5 &quot;Lucida Grande&quot;;margin:0px"><br></p><p style="font:14px/1.5 &quot;Lucida Grande&quot;;margin:0px">Thanks</p><p style="font:14px/1.5 &quot;Lucida Grande&quot;;margin:0px"><br></p><p style="font:14px/1.5 &quot;Lucida Grande&quot;;margin:0px">Lin</p><p style="font:14px/1.5 &quot;Lucida Grande&quot;;margin:0px"><span style="line-height:1.5"><br></span></p><p style="font:14px/1.5 &quot;Lucida Grande&quot;;margin:0px"><span style="line-height:1.5"> </span></p><span style="font:14px/1.5 &quot;Lucida Grande&quot;;color:rgb(51,51,51)"><br></span><div style="font:12px/1.5 &quot;Lucida Grande&quot;;padding:2px 0px"><span style="color:rgb(51,51,51);text-decoration:line-through;white-space:pre-wrap">                            </span> 原始邮件 <span style="color:rgb(51,51,51);text-decoration:line-through;white-space:pre-wrap">                            </span></div><div style="font:12px/1.5 &quot;Lucida Grande&quot;;background:rgb(239,239,239) none repeat scroll 0% 0%;color:rgb(102,102,102);padding:8px"><div><b style="color:rgb(153,153,153)">发件人:</b> Adam Phillips&lt;<a href="mailto:asphilli@ucar.edu" target="_blank">asphilli@ucar.edu</a>&gt;</div><div><b style="color:rgb(153,153,153)">收件人:</b> xianglin72&lt;<a href="mailto:xianglin72@icloud.com" target="_blank">xianglin72@icloud.com</a>&gt;</div><div><b style="color:rgb(153,153,153)">抄送:</b> <a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a>&lt;<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a>&gt;</div><div><b style="color:rgb(153,153,153)">发送时间:</b> 2015年8月22日(周六) 02:19</div><div><b style="color:rgb(153,153,153)">主题:</b> Re: [ncl-talk] Could I add some FillPatterns effect such as obliquelines to a raster fill plot ?</div></div><br><div style="font:14px/1.5 &quot;Lucida Grande&quot;;color:rgb(51,51,51)"><div dir="ltr"><div><div><div><div><div><div><div><div>Hi Lin,<br></div>You can always do an overlay where you create two images:<br></div>1) Create a RasterFill plot with colors. (You already have this plot.)<br></div>2) Create a RasterFill plot with pattern fill (not color fill).<br><br></div>Then you would overlay 2) on 1) using the overlay procedure. <br><br></div>See example #10 here:<br><a href="http://www.ncl.ucar.edu/Applications/overlay.shtml#ex10" target="_blank">http://www.ncl.ucar.edu/Applications/overlay.shtml#ex10</a><br><br></div>Note that for plot 2) (or plot_shade in example 10) you<span style="font-family:arial,helvetica,sans-serif"> would want to set the following resources:<br></span></div><span style="font-family:arial,helvetica,sans-serif">res@cnFillPattern = 3  <br></span></div><span style="font-family:arial,helvetica,sans-serif">res@cnMonoFillColor = True<br></span><div><div>res@lbLabelBarOn = False    ; no labelbar needed<br></div><div><br>Available fill patterns:<br><a href="http://www.ncl.ucar.edu/Document/Graphics/Images/fillpatterns.png" target="_blank">http://www.ncl.ucar.edu/Document/Graphics/Images/fillpatterns.png</a><div><br></div><div>Hope that helps. If not, please respond to ncl-talk.<br></div><div>Adam<br></div><div><br><br><br></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Aug 21, 2015 at 8:44 AM, xianglin72 <span dir="ltr">&lt;<a href="mailto:xianglin72@icloud.com" target="_blank">xianglin72@icloud.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="font:14px/1.5 &quot;Lucida Grande&quot;,&quot;\005fae\008f6f\0096c5\009ed1&quot;;color:rgb(51,51,51)"><p style="font:14px/1.5 &quot;Lucida Grande&quot;;margin:0px"></p><p style="line-height:1.5;text-align:left;margin:0px">Hi, all</p><p style="line-height:1.5;text-align:left;margin:0px"><br style="font-family:&quot;Lucida Grande&quot;,&quot;Lucida Sans Unicode&quot;,sans-serif!important"></p><p style="line-height:1.5;text-align:left;margin:0px">     I&#39;ve made a raster fill plot ( see the attachment), and I want to add some FillPattern effect for some chosen cells in the plot.</p><p style="line-height:1.5;text-align:left;margin:0px"><br style="font-family:&quot;Lucida Grande&quot;,&quot;Lucida Sans Unicode&quot;,sans-serif!important"></p><p style="line-height:1.5;text-align:left;margin:0px">However, I found that the resource of cnFillPattern can not work for the raster fill plot.    How could I do to add some effect, </p><p style="line-height:1.5;text-align:left;margin:0px"><br style="font-family:&quot;Lucida Grande&quot;,&quot;Lucida Sans Unicode&quot;,sans-serif!important"></p><p style="font-family:&quot;Lucida Grande&quot;,&quot;Lucida Sans Unicode&quot;,sans-serif;text-align:left;margin:0px"><font face="Lucida Grande"><span style="font-family:&quot;Lucida Grande&quot;,&quot;Lucida Sans Unicode&quot;,sans-serif!important;line-height:1.5">for example, some oblique lines to the chosen </span></font><font face="Lucida Grande">rectanglar cells?    </font></p><p style="font-family:&quot;Lucida Grande&quot;,&quot;Lucida Sans Unicode&quot;,sans-serif;text-align:left;margin:0px"><font face="Lucida Grande"><br style="font-family:&quot;Lucida Grande&quot;,&quot;Lucida Sans Unicode&quot;,sans-serif!important"></font></p><p style="font-family:&quot;Lucida Grande&quot;,&quot;Lucida Sans Unicode&quot;,sans-serif;text-align:left;margin:0px"><font face="Lucida Grande"><br style="font-family:&quot;Lucida Grande&quot;,&quot;Lucida Sans Unicode&quot;,sans-serif!important"></font></p><p style="font-family:&quot;Lucida Grande&quot;,&quot;Lucida Sans Unicode&quot;,sans-serif;text-align:left;margin:0px"><font face="Lucida Grande">Thanks</font></p><p style="font-family:&quot;Lucida Grande&quot;,&quot;Lucida Sans Unicode&quot;,sans-serif;text-align:left;margin:0px"><font face="Lucida Grande"><br style="font-family:&quot;Lucida Grande&quot;,&quot;Lucida Sans Unicode&quot;,sans-serif!important"></font></p><p style="font-family:&quot;Lucida Grande&quot;,&quot;Lucida Sans Unicode&quot;,sans-serif;text-align:left;margin:0px"><font face="Lucida Grande"><br style="font-family:&quot;Lucida Grande&quot;,&quot;Lucida Sans Unicode&quot;,sans-serif!important"></font></p><p style="font-family:&quot;Lucida Grande&quot;,&quot;Lucida Sans Unicode&quot;,sans-serif;text-align:left;margin:0px"><font face="Lucida Grande">Lin</font></p><p></p></div><br>_______________________________________________<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" rel="noreferrer" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br><br clear="all"><span class="HOEnZb"><font color="#888888"><span><font color="#888888"><br>-- <br><div><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"><a href="tel:303-497-1726" value="+13034971726" target="_blank">303-497-1726</a> </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>
</font></span></font></span></div><span class="HOEnZb"><font color="#888888"><span><font color="#888888">

</font></span></font></span></div></div></div></blockquote><span class="HOEnZb"><font color="#888888"><span><font color="#888888"><blockquote type="cite"><div>&lt;test2.eps&gt;</div></blockquote><blockquote type="cite"><div>&lt;dtr_sat_raster.ncl&gt;</div></blockquote></font></span></font></span></div><span class="HOEnZb"><font color="#888888">
</font></span></div></div></blockquote></div><span class="HOEnZb"><font color="#888888"><br><br clear="all"><br>-- <br><div><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"><a href="tel:303-497-1726" value="+13034971726" target="_blank">303-497-1726</a> </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>
</font></span></div></div>

</div></div></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>