<div dir="ltr"><div><div><div><div>Hi,<br><br></div>I am trying to plot annual cycle of precipitation using Aphrodite observation data but facing problem in having time as the x axis. Please find the script used, summary of the variable and the plot produced below. How can all months of the years can be shown properly in x axis? <br><br></div>Any advice will be highly appreciated. <br><br></div>With many thanks and regards,<br></div>Ruksana <br><br>---------------------------------------------------------------------------------------------------------------------------------------------<br><div><div><div><div><div><div><br><br>;*****************************************************<br>load &quot;$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl&quot;<br>load &quot;$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl&quot;<br>load &quot;$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl&quot;<br>load &quot;$NCARG_ROOT/lib/ncarg/nclscripts/contrib/time_axis_labels.ncl&quot;<br>;*****************************************************<br><br>begin<br><br>f = addfile(&quot;Observations/APHRO_Asian_Monsoon_1963-2007/<a href="http://APHRO_MA_050deg_V1003R1.1967.nc">APHRO_MA_050deg_V1003R1.1967.nc</a>&quot;, &quot;r&quot;)<br><br><br>ppt = f-&gt;precip<br>time = f-&gt;time<br>x = ppt&amp;time<br><br>fldmean = wgt_areaave_Wrap(ppt,1.0,1.0,1)<br><br>wks = gsn_open_wks(&quot;eps&quot;,&quot;time_series&quot;)  <br><br>printVarSummary(ppt)<br><br>; create plot<br><br>resplot = True   ; plot mods desired<br>resplot@tiMainString = &quot;APHRO PPT ANNUAL CYCLE 1967&quot;<br>resplot@tiYAxisString =  &quot;&quot;<br>resplot@xyLineColor  = &quot;Blue&quot;<br>resplot@xyLineThicknessF = 2<br>restime            = True                  ; set time tickmark resources <br>restime@ttmFormat  = &quot;%c %y&quot;                ; time tickmark format<br>time_axis_labels(time,resplot,restime)     ; sets the correct time labels <br>plot = gsn_csm_xy(wks,x,fldmean,resplot)      <br>    <br>end<br><br>--------------------------------------------------------------------------------------------------------------<br>Variable: ppt<br>Type: float<br>Total Size: 36792000 bytes<br>            9198000 values<br>Number of Dimensions: 3<br>Dimensions and sizes:   [time | 365] x [latitude | 140] x [longitude | 180]<br>Coordinates:<br>            time: [   0.. 364]<br>            latitude: [-14.75..54.75]<br>            longitude: [60.25..149.75]<br>Number Of Attributes: 5<br>  long_name :   daily precipitation analysis interpolated onto 0.5deg grids [mm/day]<br>  units :       mm/day<br>  level_description :   Earth surface<br>  missing_value :       -99.9<br>  _FillValue :  -99.9<br><br><b>warning:Attempt to reference attribute (nTicks) which is undefined</b><br><br></div></div></div></div></div></div></div>