<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">I already thought of swapping the axes. That made the trick indeed, although I would have preferred to keep fluxes axis on the left and Qnet on the right.&nbsp;<div class="">Thank you!</div><div class=""><br class=""></div><div class="">P.S. Any plans about controlling the Draw Order in xy2 plots in the future?&nbsp;<br class=""><div class="">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class=""><br class="Apple-interchange-newline">Guido Cioni</div><div class=""><a href="http://guidocioni.altervista.org" class="">http://guidocioni.altervista.org</a>&nbsp;</div><div class=""><br class=""></div></div><br class="Apple-interchange-newline" style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><br class="Apple-interchange-newline"></div>
</div>
<br class=""><div><blockquote type="cite" class=""><div class="">Il giorno 25 mag 2016, alle ore 22:13, Adam Phillips &lt;<a href="mailto:asphilli@ucar.edu" class="">asphilli@ucar.edu</a>&gt; ha scritto:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Hi Guido,<div class="">I tested your code here and am seeing what you are seeing. I did get it to work though by changing the order of the plots in gsn_csm_xy2. So, try changing this:</div><div class=""><div class=""><span style="font-family:Menlo" class="">plot(j)=gsn_csm_xy2(wks,time,</span><span style="font-family:Menlo" class="">data,data2,res,res2)</span><br class=""></div><div class=""><font face="arial, helvetica, sans-serif" class="">to this:</font></div><div class=""><span style="font-family:Menlo" class="">plot(j)=gsn_csm_xy2(wks,time,</span><span style="font-family:Menlo" class="">data2,data,res2,res)</span></div></div><div class="">Let ncl-talk know if that does not work for you.&nbsp;</div><div class="">Adam</div></div><div class="gmail_extra"><br class=""><div class="gmail_quote">On Wed, May 25, 2016 at 3:19 AM, Guido Cioni <span dir="ltr" class="">&lt;<a href="mailto:guidocioni@gmail.com" target="_blank" class="">guidocioni@gmail.com</a>&gt;</span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word" class="">Dear all,<div class="">I’ve been trying to produce a simple <font face="Menlo" class="">xy2</font> plot with two lines and a filled curve. The problem is that the latter, which is drawn together with the curve in the second y axis, cover the other two lines. I tried to play around with the resources <font face="Menlo" class="">xyCurveDrawOrder</font> and <font face="Menlo" class="">tfPolyDrawOrder</font> but nothing did the trick. I think that there is no special resource that controls the draw order of elements in xy2 plots, thus the second curve is always drawn on top of the others.&nbsp;</div><div class="">Is there any other way to achieve the same results? Maybe using <font face="Menlo" class="">polyline</font>?&nbsp;</div><div class="">Attached you find a snippet of the code (only the relevant part) and the resulting plot.&nbsp;</div><div class=""><br class=""></div><div class=""><div class=""><font face="Menlo" style="font-size:11px" class="">&nbsp;do j=0,dimsizes(case)-1</font></div><div class=""><font face="Menlo" style="font-size:11px" class="">&nbsp; &nbsp;</font></div><div class=""><div class=""><font face="Menlo" style="font-size:11px" class="">&nbsp;plot=new(dimsizes(case), graphic)</font></div><div class=""><font face="Menlo" style="font-size:11px" class="">&nbsp;poly=new(dimsizes(case), graphic)</font></div><div class=""><font face="Menlo" class=""><span style="font-size:11px" class="">&nbsp;wks &nbsp; = gsn_open_wks ("pdf",”tserie") &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; open workstation</span></font></div><div class=""><font face="Menlo" style="font-size:11px" class="">&nbsp;res &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= True &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; plot mods desired</font></div><div class=""><font face="Menlo" style="font-size:11px" class="">&nbsp;res@xyDashPatterns=(/0,0/)</font></div><div class=""><font face="Menlo" style="font-size:11px" class="">&nbsp;res@xyLineThicknessF=(/3,3/)</font></div><div class=""><font face="Menlo" style="font-size:11px" class="">&nbsp;res@xyLineColors=(/"blue","red”/)</font></div></div><div class=""><font face="Menlo" style="font-size:11px" class=""><br class=""></font></div><div class=""><font face="Menlo" style="font-size:11px" class="">&nbsp; &nbsp;data= (/lhflx, shflx/)</font></div><div class=""><font face="Menlo" style="font-size:11px" class="">&nbsp; &nbsp;data2 = qnet</font></div><div class=""><font face="Menlo" style="font-size:11px" class=""><br class=""></font></div><div class=""><font face="Menlo" style="font-size:11px" class="">&nbsp; &nbsp;res2= True</font></div><div class=""><font face="Menlo" style="font-size:11px" class="">&nbsp; &nbsp;res2@gsnDraw = False</font></div><div class=""><font face="Menlo" style="font-size:11px" class="">&nbsp; &nbsp;res2@gsnFrame = False</font></div><div class=""><font face="Menlo" style="font-size:11px" class="">&nbsp; &nbsp;res2@xyLineColor = "gold"</font></div><div class=""><font face="Menlo" style="font-size:11px" class="">&nbsp; &nbsp;res2@gsnYRefLine &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = 0.0</font></div><div class=""><font face="Menlo" style="font-size:11px" class="">&nbsp; res2@gsnAboveYRefLineColor = “lightyellow"</font></div><div class=""><font face="Menlo" style="font-size:11px" class="">&nbsp; &nbsp;</font></div><div class=""><font face="Menlo" style="font-size:11px" class="">&nbsp; plot(j)=gsn_csm_xy2(wks,time,data,data2,res,res2)</font></div><div class=""><font face="Menlo" style="font-size:11px" class="">&nbsp;&nbsp;</font></div><div class=""><font face="Menlo" style="font-size:11px" class="">delete([/lhflx, shflx, serie, time, data /])</font></div><div class=""><font face="Menlo" style="font-size:11px" class="">&nbsp;end do</font></div><div class=""><font face="Menlo" style="font-size:11px" class=""><br class=""></font></div><div class=""><font face="Menlo" style="font-size:11px" class="">plnres = True</font></div><div class=""><font face="Menlo" style="font-size:11px" class="">gsn_panel(wks,plot,(/3,1/),plnres)</font></div><div class="">
<div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-ligatures: normal; font-variant-position: normal; font-variant-caps: normal; font-variant-numeric: normal; font-variant-alternates: normal; font-variant-east-asian: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;" class=""></div></div></div></div><br class=""><div style="word-wrap:break-word" class=""><div class=""><div class=""><div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-ligatures: normal; font-variant-position: normal; font-variant-caps: normal; font-variant-numeric: normal; font-variant-alternates: normal; font-variant-east-asian: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;" class=""><br class="">Guido Cioni</div><div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-ligatures: normal; font-variant-position: normal; font-variant-caps: normal; font-variant-numeric: normal; font-variant-alternates: normal; font-variant-east-asian: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;" class=""><a href="http://guidocioni.altervista.org/" target="_blank" class="">http://guidocioni.altervista.org</a>&nbsp;</div>

</div>

<br class=""></div></div><br class="">_______________________________________________<br class="">
ncl-talk mailing list<br class="">
<a href="mailto:ncl-talk@ucar.edu" class="">ncl-talk@ucar.edu</a><br class="">
List instructions, subscriber options, unsubscribe:<br class="">
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank" class="">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br class="">
<br class=""></blockquote></div><br class=""><br clear="all" class=""><div class=""><br class=""></div>-- <br class=""><div class="gmail_signature"><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div class=""><div class=""><div class=""><span class=""><font color="#888888" class="">Adam Phillips <br class=""></font></span></div><span class=""><font color="#888888" class="">Associate Scientist,&nbsp; </font></span><span class=""><font color="#888888" class="">Climate and Global Dynamics Laboratory, NCAR<br class=""></font></span></div></div><div class=""><span class=""><font color="#888888" class=""><a href="http://www.cgd.ucar.edu/staff/asphilli/" target="_blank" class="">www.cgd.ucar.edu/staff/asphilli/</a>&nbsp;&nbsp; </font></span><span class=""><font color="#888888" class="">303-497-1726 </font></span></div><span class=""><font color="#888888" class=""></font></span><div class=""><div class=""><span class=""><font color="#888888" class=""><br class=""></font></span><div class=""><span class=""><font color="#888888" class=""><a href="http://www.cgd.ucar.edu/staff/asphilli" target="_blank" class=""></a></font></span></div></div></div></div></div></div></div></div></div></div></div>
</div>
</div></blockquote></div><br class=""></div></body></html>