<div dir="ltr"><div><div>Dear NCL users <br><br></div>I tried to plot xy graph but one problem came out. If you see attached file the X axis shows the years  like 04.0, 05.0, 06.0 ....etc<br><br></div>I need to convert x axis into 04,  05, 06, ...<br> <br><div><div>I used the scripts<br><br><br> load &quot;/usr/local/lib/ncl/lib/ncarg/nclscripts/csm/gsn_code.ncl&quot;<br> load &quot;/usr/local/lib/ncl/lib/ncarg/nclscripts/csm/gsn_csm.ncl&quot; <br> <br>begin<br> x = new (8,float)<br> y1 = new(8,float)<br> y2 = new(8,float)<br><br> x = (/04,05,06,07,08,09,10,11/)<br> y1 = (/3.53E+19,3.54E+19,3.51E+19,3.50E+19,3.54E+19,3.55E+19,3.51E+19,3.54E+19/)<br> y2 = (/300.106,300.5,300.062,300.109,300.960,301.093,299.937,300.578/)<br><br>;---Open workstation and change color map<br>  wks_type = &quot;pdf&quot;                       <br>  wks_type@wkPaperSize = &quot;B&quot;<br>  wks = gsn_open_wks(wks_type,&quot;xy&quot;)<br> <br> <br>; resources for &quot;left&quot; variable<br><br> resL = True<br> resL@gsnMaximize      = True<br> resL@xyLineThicknesses = 3.            ; thicker line<br> resL@xyLineColors = &quot;blue&quot;<br> resL@tiYAxisString = &quot;values1&quot;<br> resL@tiXAxisString = &quot;YEARS&quot;<br> <br><br><br><br>; resources for &quot;right&quot; variable<br> resR = True<br> resR@xyLineThicknesses = 3.            ; thicker line<br> resR@xyLineColors = &quot;red&quot;<br> resR@tiYAxisString = &quot;values2&quot;<br> <br> plot = gsn_csm_xy2(wks,x,y1,y2,resL,resR)<br> <br>end<br><br></div><div><br><br><div><br clear="all"><div><div dir="ltr"><div>Kunal Bali<br></div><div>Research Scholar <br></div><div>Radio &amp; Atmospheric Science Division <br></div><div>CSIR - National Physical Laboratory<br></div><div>New Delhi - 110012<br><br></div><div><br></div><div><br></div><div><br></div><div><p style="margin:0px;border-collapse:collapse;font-family:Tahoma,Verdana;font-size:12px"><font color="#1F497D"><br></font></p></div></div></div>
</div></div></div></div>