<div dir="ltr"><div><div><div><div><div><div>Hi Wei,<br></div>It depends on what functions/procedures you are using to draw your polylines/markers/text.. In all cases you should set gsnFrame = False in your res resource list. <br><br></div>I prefer the gsn_add_* suite of functions to do what you are doing as it allows paneling. For those functions you also need to add gsnDraw = False to your res resource list.<br><br></div>If you are just using gsn_text/gsn_polygon/gsn_polygon you can get away with not setting gsnDraw as is shown in polygon example #8 here:<br><a href="https://www.ncl.ucar.edu/Applications/Scripts/polyg_8.ncl">https://www.ncl.ucar.edu/Applications/Scripts/polyg_8.ncl</a><br></div><br></div>Hope that helps!<br></div>Adam<br><div><div><br><div><br><div><br><div><br></div></div></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jul 14, 2015 at 10:05 AM, Wei Huang <span dir="ltr">&lt;<a href="mailto:whuang@univ-wea.com" target="_blank">whuang@univ-wea.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I am trying to add polyline, polygon, and polytext to a map, steps as below:<br>
<br>
  res = ...<br>
  wks = ...<br>
   map = gsn_csm_map(wks, res)<br>
<br>
 ;add lots of polylines, polygons, and polytexts to map<br>
<br>
draw(map)<br>
 frame(wks)<br>
<br>
It generates two PNG files. With the first just a map.<br>
<br>
How can I remove the first blank map?<br>
<br>
Thanks,<br>
<br>
Wei Huang<br>
<a href="mailto:whuang@univ-wea.com">whuang@univ-wea.com</a><br>
<br>
<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>
</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>