<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">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>