<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. </div><div class="">Is there any other way to achieve the same results? Maybe using <font face="Menlo" class="">polyline</font>? </div><div class="">Attached you find a snippet of the code (only the relevant part) and the resulting plot. </div><div class=""><br class=""></div><div class=""><div class=""><font face="Menlo" style="font-size: 11px;" class=""> do j=0,dimsizes(case)-1</font></div><div class=""><font face="Menlo" style="font-size: 11px;" class=""> </font></div><div class=""><div class=""><font face="Menlo" style="font-size: 11px;" class=""> plot=new(dimsizes(case), graphic)</font></div><div class=""><font face="Menlo" style="font-size: 11px;" class=""> poly=new(dimsizes(case), graphic)</font></div><div class=""><font face="Menlo" class=""><span style="font-size: 11px;" class=""> wks = gsn_open_wks ("pdf",”tserie") ; open workstation</span></font></div><div class=""><font face="Menlo" style="font-size: 11px;" class=""> res = True ; plot mods desired</font></div><div class=""><font face="Menlo" style="font-size: 11px;" class=""> res@xyDashPatterns=(/0,0/)</font></div><div class=""><font face="Menlo" style="font-size: 11px;" class=""> res@xyLineThicknessF=(/3,3/)</font></div><div class=""><font face="Menlo" style="font-size: 11px;" class=""> 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=""> data= (/lhflx, shflx/)</font></div><div class=""><font face="Menlo" style="font-size: 11px;" class=""> 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=""> res2= True</font></div><div class=""><font face="Menlo" style="font-size: 11px;" class=""> res2@gsnDraw = False</font></div><div class=""><font face="Menlo" style="font-size: 11px;" class=""> res2@gsnFrame = False</font></div><div class=""><font face="Menlo" style="font-size: 11px;" class=""> res2@xyLineColor = "gold"</font></div><div class=""><font face="Menlo" style="font-size: 11px;" class=""> res2@gsnYRefLine = 0.0</font></div><div class=""><font face="Menlo" style="font-size: 11px;" class=""> res2@gsnAboveYRefLineColor = “lightyellow"</font></div><div class=""><font face="Menlo" style="font-size: 11px;" class=""> </font></div><div class=""><font face="Menlo" style="font-size: 11px;" class=""> plot(j)=gsn_csm_xy2(wks,time,data,data2,res,res2)</font></div><div class=""><font face="Menlo" style="font-size: 11px;" class=""> </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=""> 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>