<div dir="ltr"><div><div><div><div>Lyndon,<br></div>I suspect this rule in the documentation for ylint explains your issue:</div><div><br></div><div><span style="font-family:monospace,monospace">6. This command does not apply to a date/time axis. <br></span></div><div><span style="font-family:monospace,monospace"></span><br></div><div>With that in mind, also consider these questions:<br></div>1) What is the interval between time units in the data file? The units for time say "hours since 1800-1-1 00:00:00" so if the interval is like 1 hour, then changing the y-axis tick interval from 5 hours to 10 hours, for example, is likely not going to change the locations of the tick marks much nor their labels.<br></div>2) If (1) doesn't help, have you tried using 'set yaxis' instead?<br><br></div>Jeff Duda<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jan 26, 2018 at 7:40 AM, Lyndz <span dir="ltr"><<a href="mailto:olagueralyndonmark429@gmail.com" target="_blank">olagueralyndonmark429@gmail.com</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">Dear GrADS experts,<div><br></div><div><br></div><div>I am trying to modify the interval of the y-axis in the attached time-longitude plot.</div><div><br></div><div>[1] I tried to change the 'set ylint' line in my script but <b>the label interval does not change</b>. The current interval remains at 5 even if I change the ylint to say, 10.</div><div><br></div><div>[2] Is there a way to increase the number of tick marks on the y-axis?</div><div><br></div><div><br></div><div>I'll appreciate any suggestion on how to do this correctly.</div><div><br></div><div><br></div><div>Here's the script:</div><div><br></div><div><div>'sdfopen <a href="http://bpass_aug9_sep7_30-60filt_1994-2008.nc" target="_blank">bpass_aug9_sep7_30-60filt_<wbr>1994-2008.nc</a>'</div><div>'set display color white'</div><div>'c'</div><div>'set mpdset hires'</div><div>'set grid on'</div><div>'set grads off'</div><div>'set parea 1.5 8 2 10.5'</div><div>'set font 1'</div><div>'set xlopts 1 5 0.2'</div><div>'set xlint 10'</div><div><br></div><div><b>'set ylint 10'</b></div><div><b><br></b></div><div>'set ylopts 1 5 0.2'</div><div>'set lon 100 180'</div><div>'set gxout shaded'</div><div>'set tlsupp year'</div><div><br></div><div>'set t 1 84'</div><div>'define var=ave(xbpf,lat=10,lat=20)'</div><div>'color -10 10 1 -kind mediumblue->royalblue-><wbr>cornflowerblue->white->khaki-><wbr>orange->red'</div><div>'set y 1'<br></div><div>'d var'</div><div>'xcbar 1.5 8 1 1.25 -line on -fs 2 -fh 0.18 -fw 0.18'</div><div><br></div><div>******************************<wbr>****************************</div><div>*Overlay contours</div><div>******************************<wbr>****************************</div><div><br></div><div>'set gxout contour'</div><div>'set ccolor 1'</div><div>'set cint 1'</div><div>'set clab forced'</div><div>'d var'</div><div>*'set line 4 1 1'</div><div>*'draw line 1 10 5 5'</div><div><br></div><div>'printim hov_plot.png'</div><div>'quit'</div></div><div><br></div><div><br></div><div>Here's the detail of the file:</div><div><br></div><div><div>netcdf bpass_aug9_sep7_30-60filt_<wbr>1994-2008 {</div><div>dimensions:</div><div><span style="white-space:pre-wrap"> </span>lon = 144 ;</div><div><span style="white-space:pre-wrap"> </span>lat = 73 ;</div><div><span style="white-space:pre-wrap"> </span>time = UNLIMITED ; // (92 currently)</div><div>variables:</div><div><span style="white-space:pre-wrap"> </span>float lon(lon) ;</div><div><span style="white-space:pre-wrap"> </span>lon:standard_name = "longitude" ;</div><div><span style="white-space:pre-wrap"> </span>lon:long_name = "longitude" ;</div><div><span style="white-space:pre-wrap"> </span>lon:units = "degrees_east" ;</div><div><span style="white-space:pre-wrap"> </span>lon:axis = "X" ;</div><div><span style="white-space:pre-wrap"> </span>float lat(lat) ;</div><div><span style="white-space:pre-wrap"> </span>lat:standard_name = "latitude" ;</div><div><span style="white-space:pre-wrap"> </span>lat:long_name = "latitude" ;</div><div><span style="white-space:pre-wrap"> </span>lat:units = "degrees_north" ;</div><div><span style="white-space:pre-wrap"> </span>lat:axis = "Y" ;</div><div><span style="white-space:pre-wrap"> </span>double time(time) ;</div><div><span style="white-space:pre-wrap"> </span>time:standard_name = "time" ;</div><div><span style="white-space:pre-wrap"> </span>time:long_name = "Time" ;</div><div><span style="white-space:pre-wrap"> </span>time:units = "hours since 1800-1-1 00:00:00" ;</div><div><span style="white-space:pre-wrap"> </span>time:calendar = "standard" ;</div><div><span style="white-space:pre-wrap"> </span>time:axis = "T" ;</div><div><span style="white-space:pre-wrap"> </span>float xBPF(time, lat, lon) ;</div><div><span style="white-space:pre-wrap"> </span>xBPF:long_name = "Lanczos Bpassfilt" ;</div><div><span style="white-space:pre-wrap"> </span>xBPF:units = "W m-2" ;</div><div><span style="white-space:pre-wrap"> </span>xBPF:_FillValue = 32766.f ;</div><div><span style="white-space:pre-wrap"> </span>xBPF:missing_value = 32766.f ;</div><div><span style="white-space:pre-wrap"> </span>xBPF:wgt_runave_op_ncl = "wgt_runave_n" ;</div></div><div><br></div><div><br></div><div>Sincerely,</div><div><br clear="all"><div><div class="m_3368773969602128817gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><font face="comic sans ms, sans-serif"><b><u>Lyndon Mark P. Olaguera</u></b></font><div>PhD StudentĀ </div><div>Laboratory of Climatology</div><div>Department of Geography</div><div>Faculty of Urban Environmental Science</div><div><span style="font-size:12.8px">Minami-Osawa Campus</span><br></div><div>Tokyo Metropolitan University</div><div>Hachioji Tokyo, Japan</div><div><br></div></div></div></div></div></div></div></div></div></div></div></div></div></div>
</div></div>
<br>______________________________<wbr>_________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" rel="noreferrer" target="_blank">http://gradsusr.org/mailman/<wbr>listinfo/gradsusr</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>Jeff Duda, Research Scientist<br>
<p style="margin-bottom:0in;margin-bottom:.0001pt"><span style="font-size:12.0pt;font-family:"Times New Roman",serif">University of Colorado Boulder</span></p>
<p style="margin-bottom:0in;margin-bottom:.0001pt"><span style="font-size:12.0pt;font-family:"Times New Roman",serif">Cooperative Institute for Research in Environmental Sciences</span></p>
<p style="margin-bottom:0in;margin-bottom:.0001pt"><span style="font-size:12.0pt;font-family:"Times New Roman",serif">NOAA/OAR/ESRL/Global Systems Division</span></p>
<span style="font-size:12.0pt;font-family:"Times New Roman",serif">Boulder, CO</span>
</div></div></div></div></div></div></div></div></div>
</div>