<div dir="ltr">Hi Jason,<div>Thank you for sending an easy-to-run script. I have attached a modified script along with the resulting graphic. </div><div>Two things to note:</div><div>1 - I altered your asciiread statement to read in the data as a double, that way you can see the correct time. I then manually created my own yyyymmddhh array from the original time. Note that I assumed that the data is regular and that there are not any missing timesteps from 20061221-20191231.95833. Once I passed the yyyymmddhh array into yyyymmddhh_to_yyyyfrac I now have a regular time coordinate to pass into gsn_csm_xy. This alleviates the jumping you were getting in your plot. Please look at the print statement output and coding and make sure the assumptions I made are correct.</div><div><br></div><div>2 - To get better control of the tick mark labels, I recommend setting tmXBMode = "Explicit", and setting tmXBValues/tmXBLabels. See the <a href="http://www.ncl.ucar.edu/Applications/tickmarks.shtml">tickmarks application page</a> for other examples of using these resources.</div><div><br></div><div>Hope that helps!</div><div>Adam </div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Dec 2, 2020 at 2:39 PM Herb, Jason via ncl-talk <<a href="mailto:ncl-talk@mailman.ucar.edu">ncl-talk@mailman.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 style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Hello All,</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
I have been working with a continuous data set from late 2006 to end of 2019. I have been able to force the X-axis labeling as close as I can to get year to whole numbers, but I keep getting ".0" at the end of the year. Also, I have a plotting error in the
actual data with the space containing "flat lines" between the end or one year to the start of the next. I attempted to setup another array for the year but get the following error message :</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
fatal:Illegal subscript. Subscripts must be integer when not using coordinate indexing
<div>fatal:["Execute.c":8640]:Execute: Error occurred at or near line 36 in file Basiclineplot.ncl</div>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
I have attached the plot, script and input file.<br>
Does anyone have any suggestions to assist with this plotting issue?</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Thanks,</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Jason<br>
</div>
</div>
_______________________________________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@mailman.ucar.edu" target="_blank">ncl-talk@mailman.ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="https://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">https://mailman.ucar.edu/mailman/listinfo/ncl-talk</a></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>