<div dir="ltr">Hi Lara,<div><br></div><div>Do you have these resources set:</div><div><br></div><div> res@gsnDraw = False</div><div> res@gsnFrame = False</div><div><br></div><div>These are True by default; setting them to False prevents the plots from being drawn immediately, allowing one to then call the overlay procedure, and then explicitly draw and frame.</div><div><br></div><div>Rick</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jun 5, 2019 at 9:20 AM Lara Quitián Hernández <<a href="mailto:laraquitianhernandez@gmail.com">laraquitianhernandez@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="ltr">Good afternoon, <div><br></div><div>When I use the overlay function:</div><div><i><font color="#20124d"><br></font></i></div><div><div><i><font color="#20124d">plot = gsn_csm_contour_map(wks,eth,res) ; create a default plot<br>plot2 = gsn_csm_contour(wks,slp,slp_res) ; create a default plot<br><br> overlay(plot,plot2) ; overlay the slp plot on the eth plot<br> draw(plot) <br> frame(wks)</font></i><br></div><div><br></div><div>I obtain three different files:</div><div><b>ETH2-slp_Ophelia1_66.000001.png<br></b></div><div><b>ETH2-slp_Ophelia1_66.000002.png<br></b></div><div><b>ETH2-slp_Ophelia1_66.000003.png<br></b></div><div><br></div><div>What should I do to avoid that? I only need the last one (the overlay of the 1st and 2nd plot). </div><div>I have tried to comment the draw() and frame() function, but it doesn't work.</div><div><br></div><div>Thanks in advance. </div><div><br></div><div>Regards, </div><div>Lara</div>-- <br><div dir="ltr" class="gmail-m_-208980477825187925gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><img src="https://docs.google.com/uc?export=download&id=0B5glieJcogGocjdGWHA3NWIwdmc&revid=0B5glieJcogGocU45NUpENzV4UWhCWk9tb1ZGdXB5MEtGYjJjPQ"><br><div><br></div><div><div><b><font color="#000000"><span style="font-size:12.8px">Lara Quitián Hernández, </span></font><span style="color:rgb(0,0,0);font-size:12.8px">PhD Student</span></b><font color="#000000"><b><br style="font-size:12.8px"></b><div><span style="font-size:12.8px">Department of Earth Physics and Astrophysics</span></div><div><span style="font-size:12.8px">Faculty of Physical Sciences</span></div><span style="font-size:13px">Ciudad Universitaria, Plaza Ciencias, 1</span></font></div><div><font color="#000000"><span style="font-size:12.8px">28040 Madrid. Spain</span><br style="font-size:12.8px"><span style="font-size:12.8px">Email: </span><a href="mailto:mlunar@aemet.es" style="font-size:12.8px" target="_blank">lquitian@ucm.es</a></font></div></div><div><br></div></div></div></div></div></div></div></div></div>
_______________________________________________<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>
</blockquote></div>