<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="">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="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; 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;" class=""></div></div></div></body></html>