<div dir="ltr"><div>I think there is a typo:</div><div>res@trYminF and res@trYmaxF should be res@trYMinF and res@trYMaxF.<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jun 29, 2018 at 7:31 AM, Francesco Trotta <span dir="ltr"><<a href="mailto:francesco.trotta4@unibo.it" target="_blank">francesco.trotta4@unibo.it</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr" style="font-size:12pt;color:#000000;background-color:#ffffff;font-family:Calibri,Arial,Helvetica,sans-serif">
<p style="font-family:Calibri,Helvetica,sans-serif;font-size:16px">Dear NCL team,</p>
<p style="font-family:Calibri,Helvetica,sans-serif;font-size:16px">I'm trying to constrain the Y axis range with resource trYminF and trYmaxF. The plot type is gsn_csm_y and gsn_csm_contour. </p>
<p style="font-family:Calibri,Helvetica,sans-serif;font-size:16px"><br>
</p>
<p style="font-family:Calibri,Helvetica,sans-serif;font-size:16px"></p>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:16px">bsectot = new(npuntifin, float)</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:16px">bsectot!0 = "points"</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:16px">bsectot&points = pp</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:16px">g = 0 </div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:16px">do j=0,npsez-1</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:16px"><span style="white-space:pre-wrap"></span>ptsXsec := gc_latlon(psez(j,0), psez(j,1), psez(j,2), psez(j,3), NPTS(j), 2) </div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:16px"><span style="white-space:pre-wrap"></span>latXsecUser := ptsXsec@gclat </div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:16px"><span style="white-space:pre-wrap"></span>lonXsecUser := ptsXsec@gclon</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:16px"><span style="white-space:pre-wrap"></span>lonXsecUser = where(lonXsecUser.gt.0, lonXsecUser-360, lonXsecUser)</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:16px"><span style="white-space:pre-wrap"></span>bsecUser := linint2_points_Wrap(b&lon,b&<wbr>lat,b, False,lonXsecUser, latXsecUser, 2) </div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:16px"><br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:16px"> if (j.eq.0) then </div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:16px"><span style="white-space:pre-wrap"></span>do p = g, g+NPTS(j)-1</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:16px"> <span style="white-space:pre-wrap">
</span>bsectot(p) = (/bsecUser(p-g)/)</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:16px"><span style="white-space:pre-wrap"></span>end do</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:16px"><span style="white-space:pre-wrap"></span>g = g+NPTS(j)</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:16px"><span style="white-space:pre-wrap"></span>else </div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:16px"><span style="white-space:pre-wrap"></span>do p = g, g+NPTS(j)-1-1 </div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:16px"><span style="white-space:pre-wrap"></span>bsectot(p) = (/bsecUser(p-g+1)/)</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:16px"><span style="white-space:pre-wrap"></span>end do</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:16px"><span style="white-space:pre-wrap"></span>g = g+NPTS(j)-1</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:16px"><span style="white-space:pre-wrap"></span>end if<span style="white-space:pre-wrap">
</span></div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:16px">end do</div>
<br style="font-family:Calibri,Helvetica,sans-serif;font-size:16px">
<p style="font-family:Calibri,Helvetica,sans-serif;font-size:16px"></p>
<p style="font-family:Calibri,Helvetica,sans-serif;font-size:16px"></p>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:16px">res@tiMainString = "Bathymetry along section 0"</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:16px">res@tiYAxisString = b@long_name+" ["+b@units+"]"</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:16px">res@xyLineThicknessF = 3.0</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:16px">res@xyLineColor = "Navy"</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:16px">res@trYReverse = True</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:16px">res@trYminF = 500</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:16px">res@trYmaxF = 1000</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:16px"><span style="white-space:pre-wrap"></span> </div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:16px">plot = gsn_csm_y(wks,bsectot,res)</div>
<br style="font-family:Calibri,Helvetica,sans-serif;font-size:16px">
<p style="font-family:Calibri,Helvetica,sans-serif;font-size:16px"></p>
<p style="font-family:Calibri,Helvetica,sans-serif;font-size:16px"><span style="font-family:Calibri,Helvetica,sans-serif,EmojiFont,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols">But I have
this warning: "</span><span style="font-family:Calibri,Helvetica,sans-serif,EmojiFont,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols">trYminF is not a valid resource in /Along_sec.0_<wbr>Bathymetryexp2nest75_nest01_xy
at this time"</span><br>
</p>
<p style="font-family:Calibri,Helvetica,sans-serif;font-size:16px"><span style="font-family:Calibri,Helvetica,sans-serif,EmojiFont,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols">How can I
limit the Y axis range?</span></p>
<p style="font-family:Calibri,Helvetica,sans-serif;font-size:16px"><span style="font-family:Calibri,Helvetica,sans-serif,EmojiFont,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols"><br>
</span></p>
<p style="font-family:Calibri,Helvetica,sans-serif;font-size:16px"><span style="font-family:Calibri,Helvetica,sans-serif,EmojiFont,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols">Thank you
in advance for your responce,</span></p>
<p style="font-family:Calibri,Helvetica,sans-serif;font-size:16px"><span style="font-family:Calibri,Helvetica,sans-serif,EmojiFont,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols">Francesco
Trotta</span></p>
<p><br>
</p>
</div>
<br>______________________________<wbr>_________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu">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/<wbr>mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>