<div dir="ltr">Please read documentation. <br><div><br>res@tmXBFormat = &quot;f&quot;<br><br>Examples:<br><br><a href="http://www.ncl.ucar.edu/Document/Graphics/Resources/tm.shtml#tmXBFormat"><em>tmXBFormat</em></a><br>
    <a href="http://www.ncl.ucar.edu/Applications/Scripts/cloudsat_1.ncl">cloudsat_1.ncl</a> (<a href="http://www.ncl.ucar.edu/Applications/cloudsat.shtml#ex1">CloudSat: Cloud Vertical Structure</a>)<br> 
    <a href="http://www.ncl.ucar.edu/Applications/Scripts/eof_3.ncl">eof_3.ncl</a> (<a href="http://www.ncl.ucar.edu/Applications/eof.shtml#ex3">empirical orthogonal functions</a>)<br> 
    <a href="http://www.ncl.ucar.edu/Applications/Scripts/gpcp_2.ncl">gpcp_2.ncl</a> (<a href="http://www.ncl.ucar.edu/Applications/gpcp.shtml#ex2">GPCP</a>)<br> 
    <a href="http://www.ncl.ucar.edu/Applications/Scripts/panel_21.ncl">panel_21.ncl</a> (<a href="http://www.ncl.ucar.edu/Applications/panel.shtml#ex21">panel plots</a>)<br> 
    <a href="http://www.ncl.ucar.edu/Applications/Scripts/raster_5.ncl">raster_5.ncl</a> (<a href="http://www.ncl.ucar.edu/Applications/raster.shtml#ex5">raster plots</a>)<br> 
    <a href="http://www.ncl.ucar.edu/Applications/Scripts/time_labels_1.ncl">time_labels_1.ncl</a> (<a href="http://www.ncl.ucar.edu/Applications/time_labels.shtml#ex1">time axis labels</a>)<br> 
    <a href="http://www.ncl.ucar.edu/Applications/Scripts/tm_8.ncl">tm_8.ncl</a> (<a href="http://www.ncl.ucar.edu/Applications/tickmarks.shtml#ex8">tickmarks</a>)<br> 
    <a href="http://www.ncl.ucar.edu/Applications/Scripts/unique_12.ncl">unique_12.ncl</a> (<a href="http://www.ncl.ucar.edu/Applications/unique.shtml#ex12">unique plots</a>)<br> 
<a name="tmXBLabelAngleF"></a>
<br><br></div><div>In particular, <br><br><a href="http://www.ncl.ucar.edu/Applications/tickmarks.shtml">http://www.ncl.ucar.edu/Applications/tickmarks.shtml</a><br></div><div>Example 8<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Sep 26, 2014 at 6:37 AM, Kunal Bali <span dir="ltr">&lt;<a href="mailto:kunal.bali9@gmail.com" target="_blank">kunal.bali9@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>I changed float to integer <br><br></div>x = new (8,integer)<br></div>but still x values coming in decimal (4.0 , 5.0, 6.0)<br><br></div><div class="gmail_extra"><span class=""><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-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;border-collapse:collapse;font-family:Tahoma,Verdana;font-size:12px"><font color="#1F497D"><br></font></p></div></div></div>
<br></span><div><div class="h5"><div class="gmail_quote">On Fri, Sep 26, 2014 at 6:03 PM, Karin Meier-Fleischer <span dir="ltr">&lt;<a href="mailto:meier-fleischer@dkrz.de" target="_blank">meier-fleischer@dkrz.de</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000">
    Hi Kunal,<br>
    <br>
    you defined variable x to float, change it to integer.<br>
    <br>
    Bye,<br>
    Karin<br>
    <br>
    <div>Am 26.09.14 14:16, schrieb Kunal Bali:<br>
    </div>
    <blockquote type="cite"><div><div>
      <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>
      <br>
      <fieldset></fieldset>
      <br>
      </div></div><pre>_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a>
</pre>
    </blockquote>
    <br>
    <pre cols="72">-- 
Dipl. Geophys. Karin Meier-Fleischer
Visualization
Application Support

Deutsches Klimarechenzentrum GmbH (DKRZ)
Bundesstrasse 45a - D20146 Hamburg - Germany

Phone:    <a href="tel:%2B49%20%280%2940%20460094%20126" value="+4940460094126" target="_blank">+49 (0)40 460094 126</a>
Fax:      <a href="tel:%2B49%20%280%2940%20460094%20270" value="+4940460094270" target="_blank">+49 (0)40 460094 270</a>
E-Mail:   <a href="mailto:meier-fleischer@dkrz.de" target="_blank">meier-fleischer@dkrz.de</a>
URL:      <a href="http://www.dkrz.de" target="_blank">www.dkrz.de</a>

Geschäftsführer: Prof. Dr. Thomas Ludwig
Sitz der Gesellschaft: Hamburg
Amtsgericht Hamburg HRB 39784
</pre>
  </div>

<br>_______________________________________________<br>
ncl-talk mailing list<br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div></div></div>
<br>_______________________________________________<br>
ncl-talk mailing list<br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>