<div dir="ltr"><div>As you are overlaying plot3 onto plot(0), NCL will use the X-axis range used in plot(0) to display the overlaid plot. <br></div>I believe Rick is recommending that you set spec3@spcx to _FillValue when p3 > 40. <div>Adam</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Jun 28, 2019 at 1:32 PM S Br via ncl-talk <<a href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</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">Hi Rick,<div>To calculate spectrum we need full length of data which is about 500 years. Which parameter do you ask me to _FillValue for years greater than 40?</div><div><br></div><div>Thanks.</div><div>SB</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Jun 28, 2019 at 5:17 PM Rick Brownrigg <<a href="mailto:brownrig@ucar.edu" target="_blank">brownrig@ucar.edu</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"><div dir="ltr">I don't know for certain, but what about setting the data for the 3rd line to _FillValue for years greater than 40?<br></div><div><br></div><div>Rick<br></div><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Jun 28, 2019 at 10:02 AM S Br via ncl-talk <<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</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">Hi All,<br><div>I have generated the attached spectrum analysis with three series of data. I have used overlay to plot three lines for this figure. In this, the X-axis ranges from 0 to 100. However, I don't want to show one of the spectrum line (e.g. Var3) beyond year 40. The first two series should show the spectrum with the X-axis 0 to 100 year but third spectrum line should plot up to year 40 (not beyond that).</div><div><br></div><div>I have tried by limiting the X-axis as shown below but doesn't work.</div><div><br></div><div> res = True ; no plot mods desired</div> res@gsnDraw = False<br> res@gsnFrame = False<br> res@trYMinF = 0 ; manually set lower limit Y axis<br> res@trYMaxF = 15 ; manually set upper limit Y axis<br> res@trXMinF = 0 ; manually set lower limit X axis<br> res@trXMaxF = 100 ; manually set upper <div><br><div> res@xyLineColors = (/"green4"/) ; Line colours (white-to invisible the markov line)<br> plot(0) = gsn_csm_xy(wks, p1, spec1@spcx, res)<br> delete(res@gsnCenterString) ; no center string for the following plot<br> delete(res@gsnLeftString) ; no center string for the following plot<br> res@xyLineColors = (/"red"/) ; Line colours (white-to invisible the markov line)<br> plot2 = gsn_csm_xy(wks, p2, spec2@spcx, res)</div><div><br> delete(res@trXMinF)<br> delete(res@trXMaxF)<br> res@trXMinF = 0 ; manually set lower limit X axis<br> res@trXMaxF = 40 ; manually set upper limit X axis<br> res@xyLineColors = (/"blue"/) ; Line colours (white-to invisible the markov line)<br> plot3 = gsn_csm_xy(wks, p3, spec3@spcx, res)<br><br> overlay(plot(0),plot2)<br> overlay(plot(0),plot3)<br><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div>Thank you.</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></div>
</blockquote></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><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div><div><span><font color="#888888">Adam Phillips <br></font></span></div><span><font color="#888888">Associate Scientist, </font></span><span><font color="#888888">Climate and Global Dynamics Laboratory, NCAR<br></font></span></div></div><div><span><font color="#888888"><a href="http://www.cgd.ucar.edu/staff/asphilli/" target="_blank">www.cgd.ucar.edu/staff/asphilli/</a> </font></span><span><font color="#888888">303-497-1726 </font></span></div><span><font color="#888888"></font></span><div><div><span><font color="#888888"><br></font></span><div><span><font color="#888888"><a href="http://www.cgd.ucar.edu/staff/asphilli" target="_blank"></a></font></span></div></div></div></div></div></div></div></div></div></div></div>