<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">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">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"><<a href="mailto:xianglin72@icloud.com" target="_blank">xianglin72@icloud.com</a>></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 'Lucida Grande','\005fae\008f6f\0096c5\009ed1';color:#333"><p style="font:14px/1.5 'Lucida Grande';margin:0"></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:'Lucida Grande','Lucida Sans Unicode',sans-serif!important"></p><p style="line-height:1.5;text-align:left;margin:0px"> I'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:'Lucida Grande','Lucida Sans Unicode',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:'Lucida Grande','Lucida Sans Unicode',sans-serif!important"></p><p style="font-family:'Lucida Grande','Lucida Sans Unicode',sans-serif;text-align:left;margin:0px"><font face="Lucida Grande"><span style="font-family:'Lucida Grande','Lucida Sans Unicode',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:'Lucida Grande','Lucida Sans Unicode',sans-serif;text-align:left;margin:0px"><font face="Lucida Grande"><br style="font-family:'Lucida Grande','Lucida Sans Unicode',sans-serif!important"></font></p><p style="font-family:'Lucida Grande','Lucida Sans Unicode',sans-serif;text-align:left;margin:0px"><font face="Lucida Grande"><br style="font-family:'Lucida Grande','Lucida Sans Unicode',sans-serif!important"></font></p><p style="font-family:'Lucida Grande','Lucida Sans Unicode',sans-serif;text-align:left;margin:0px"><font face="Lucida Grande">Thanks</font></p><p style="font-family:'Lucida Grande','Lucida Sans Unicode',sans-serif;text-align:left;margin:0px"><font face="Lucida Grande"><br style="font-family:'Lucida Grande','Lucida Sans Unicode',sans-serif!important"></font></p><p style="font-family:'Lucida Grande','Lucida Sans Unicode',sans-serif;text-align:left;margin:0px"><font face="Lucida Grande"><br style="font-family:'Lucida Grande','Lucida Sans Unicode',sans-serif!important"></font></p><p style="font-family:'Lucida Grande','Lucida Sans Unicode',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">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"><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>