<div dir="ltr">Hi,<div><br></div><div>Did you specify the gsnDraw and gsnFrame for both res and slp_res? Something like this:</div><div><br></div><div><pre style="color:rgb(0,0,0);white-space:pre-wrap"> res = True
res@mpOutlineOn = True
res@gsnDraw = False ; do not draw the plot
res@gsnFrame = False ; do not advance theframe</pre></div><div> <span style="color:rgb(0,0,0);white-space:pre-wrap">slp_res = True </span></div><div><span style="color:rgb(0,0,0);white-space:pre-wrap"> slp_res@gsnDraw = False </span><br></div><div><span style="color:rgb(0,0,0);white-space:pre-wrap"> slp_res@gsnFrame = False </span></div><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>Delete first the images. Then add those lines in your script.</div><div><br></div><div>Best,</div><div><br></div><div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><font face="comic sans ms, sans-serif"><b><u>Lyndon Mark P. Olaguera</u></b></font><div>PhD Student </div><div>Laboratory of Climatology</div><div>Department of Geography</div><div>Faculty of Urban Environmental Science</div><div><span style="font-size:12.8px">Minami-Osawa Campus</span><br></div><div>Tokyo Metropolitan University</div><div>Hachioji Tokyo, Japan</div><div><br></div></div></div></div></div></div></div></div></div></div></div></div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Jun 6, 2019 at 5:21 PM 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:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hello Rick, <div><br></div><div>Thank you very much! </div><div><br></div><div>I have tried to set those resources to False, but it still generates two images: one with only the contour plot and the other one with the correct figure (contour over the shaded field). </div><div><br></div><div>Best regards, </div><div>Lara</div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">El mié., 5 jun. 2019 a las 17:53, Rick Brownrigg (<<a href="mailto:brownrig@ucar.edu" target="_blank">brownrig@ucar.edu</a>>) escribió:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><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" target="_blank">laraquitianhernandez@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid 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_7567351185329619308gmail-m_-8308644572777589844gmail-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>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail-m_7567351185329619308gmail_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>
_______________________________________________<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>