<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi John,<br>
<br>
You can't use your date variable in the gsn_csm_xy function call
because date<br>
is of type string, not numeric.<br>
You have to set explicit values and levels for the bottom x-axis
like below<br>
<br>
<font color="#3333ff"><tt> xvalues = ispan(1,dimsizes(date),1)</tt><tt><br>
</tt><tt> </tt><tt><br>
</tt><tt> res@tmXBMode = "Explicit" ;--
y-axis draw mode</tt><tt><br>
</tt><tt> res@tmXBValues = <b>xvalues</b>
;-- use pre-defined values</tt><tt><br>
</tt><tt> res@tmXBLabels = <b>date</b>
;-- use pre-defined labels</tt><tt><br>
</tt><tt> res@tmXBLabelAngleF = 50.0</tt><tt><br>
</tt><tt> res@tmXBLabelDeltaF = 1.5</tt><tt><br>
</tt><tt> res@tmXBLabelFontHeightF = 0.009</tt><tt><br>
</tt><tt> res@tmXBLabelJust = "CenterRight"</tt><tt><br>
</tt><tt> </tt><tt><br>
</tt><tt> plot = gsn_csm_xy(wks,<b>xvalues</b>,data(:,6),res) </tt></font><br>
<br>
Bye,<br>
Karin<br>
<br>
<br>
<div class="moz-cite-prefix">Am 10.02.15 um 11:56 schrieb Ioannis
Koletsis:<br>
</div>
<blockquote cite="mid:00e001d04520$3f212070$bd636150$@noa.gr"
type="cite">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 12 (filtered
medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        color:black;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";
        color:black;}
pre
        {mso-style-priority:99;
        mso-style-link:"Προ-διαμορφωμένο HTML Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";
        color:black;}
span.EmailStyle17
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.-HTMLChar
        {mso-style-name:"Προ-διαμορφωμένο HTML Char";
        mso-style-priority:99;
        mso-style-link:"Προ-διαμορφωμένο HTML";
        font-family:Consolas;
        color:black;}
span.EmailStyle21
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.Section1
        {page:Section1;}
-->
</style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="Section1">
<p class="MsoNormal"><span style="color:#1F497D" lang="EN-US">Ooopsss…..<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D" lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D" lang="EN-US">I
am so sorry….<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D" lang="EN-US">Files
are included…..<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D" lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D" lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Dear NCL users,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">I would like to make a
xy plot timeserie….<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">The values of the sixth
column of input.txt
file are set in y axis while the time of simulation in x
axis…<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">However, the date
(string) of the attached
script (line 29) is not appeared in x axis…..<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> <o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Is this possible?<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> <o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Any help would be
appreciated…<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> <o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Best Regards</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">John </span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#1F497D" lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D" lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D" lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D" lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D" lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #B5C4DF
1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span
style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext">From:</span></b><span
style="font-size:10.0pt;font-family:
"Tahoma","sans-serif";color:windowtext">
<a class="moz-txt-link-abbreviated" href="mailto:ncl-talk-bounces@ucar.edu">ncl-talk-bounces@ucar.edu</a>
[<a class="moz-txt-link-freetext" href="mailto:ncl-talk-bounces@ucar.edu">mailto:ncl-talk-bounces@ucar.edu</a>] <b>On Behalf Of </b>Karin
Meier-Fleischer<br>
<b>Sent:</b> Tuesday, February 10, 2015 12:44 PM<br>
<b>To:</b> <a class="moz-txt-link-abbreviated" href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a><br>
<b>Subject:</b> Re: [ncl-talk] String in x axis (XY
plot)<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal" style="margin-bottom:12.0pt">I can't see an
attachment in
your mail.<o:p></o:p></p>
<div>
<p class="MsoNormal">Am 10.02.15 um 11:37 schrieb Ioannis
Koletsis:<o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal"><span lang="EN-US">Dear NCL users,</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">I would like to make a
xy plot timeserie….</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">The values of the
sixth column of input.txt
file are set in y axis while the time of simulation in x
axis…</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">However, the date
(string) of the attached
script (line 29) is not appeared in x axis…..</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US"> </span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">Is this possible?</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US"> </span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">Any help would be
appreciated…</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US"> </span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">Best Regards</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">John </span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US"> </span><o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span
style="font-size:12.0pt;
font-family:"Times New Roman","serif""><o:p> </o:p></span></p>
<div class="MsoNormal" style="text-align:center"
align="center"><span
style="font-size:12.0pt;font-family:"Times New
Roman","serif"">
<hr style="color:#909090" align="center" noshade="noshade"
size="1" width="99%">
</span></div>
<table class="MsoNormalTable" style="border-collapse:collapse"
border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td style="padding:0cm 11.25pt 0cm 6.0pt">
<p class="MsoNormal"><span
style="font-size:12.0pt;font-family:"Times
New Roman","serif""><a
moz-do-not-send="true"
href="http://www.avast.com/"><span
style="text-decoration:none"><img
moz-do-not-send="true" id="_x0000_i1026"
src="http://static.avast.com/emails/avast-mail-stamp.png"
border="0"></span></a><o:p></o:p></span></p>
</td>
<td style="padding:.75pt .75pt .75pt .75pt">
<p><span
style="font-family:"Calibri","sans-serif";color:#3D4D5A">Αυτό
το email είναι απαλλαγμένο από ιούς και κακόβουλο
λογισμικό, επειδή η προστασία <a
moz-do-not-send="true"
href="http://www.avast.com/">avast! Antivirus</a>
είναι ενεργή. <o:p></o:p></span></p>
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal"><span
style="font-size:12.0pt;font-family:"Times New
Roman","serif""><br>
<br>
<br>
<br>
<o:p></o:p></span></p>
<pre>_______________________________________________<o:p></o:p></pre>
<pre>ncl-talk mailing list<o:p></o:p></pre>
<pre>List instructions, subscriber options, unsubscribe:<o:p></o:p></pre>
<pre><a moz-do-not-send="true" href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><o:p></o:p></pre>
</blockquote>
<p class="MsoNormal"><span
style="font-size:12.0pt;font-family:"Times New
Roman","serif""><br>
<br>
<o:p></o:p></span></p>
<pre>-- <o:p></o:p></pre>
<pre>Dipl. Geophys. Karin Meier-Fleischer<o:p></o:p></pre>
<pre>Visualization<o:p></o:p></pre>
<pre>Application Support<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>Deutsches Klimarechenzentrum GmbH (DKRZ)<o:p></o:p></pre>
<pre>Bundesstrasse 45a - D20146 Hamburg - Germany<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>Phone: +49 (0)40 460094 126<o:p></o:p></pre>
<pre>Fax: +49 (0)40 460094 270<o:p></o:p></pre>
<pre>E-Mail: <a moz-do-not-send="true" href="mailto:meier-fleischer@dkrz.de">meier-fleischer@dkrz.de</a><o:p></o:p></pre>
<pre>URL: <a moz-do-not-send="true" href="http://www.dkrz.de">www.dkrz.de</a><o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>Geschäftsführer: Prof. Dr. Thomas Ludwig<o:p></o:p></pre>
<pre>Sitz der Gesellschaft: Hamburg<o:p></o:p></pre>
<pre>Amtsgericht Hamburg HRB 39784<o:p></o:p></pre>
</div>
<br>
<br>
<hr style="border:none; color:#909090; background-color:#B0B0B0;
height: 1px; width: 99%;">
<table style="border-collapse:collapse;border:none;">
<tbody>
<tr>
<td style="border:none;padding:0px 15px 0px 8px"> <a
moz-do-not-send="true" href="http://www.avast.com/"> <img
moz-do-not-send="true"
src="http://static.avast.com/emails/avast-mail-stamp.png"
border="0"> </a> </td>
<td>
<p style="color:#3d4d5a;
font-family:"Calibri","Verdana","Arial","Helvetica";
font-size:12pt;"> Αυτό το email είναι απαλλαγμένο από
ιούς και κακόβουλο λογισμικό, επειδή η προστασία <a
moz-do-not-send="true" href="http://www.avast.com/">avast!
Antivirus</a> είναι ενεργή. </p>
</td>
</tr>
</tbody>
</table>
<br>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Dipl. Geophys. Karin Meier-Fleischer
Visualization
Application Support
Deutsches Klimarechenzentrum GmbH (DKRZ)
Bundesstrasse 45a - D20146 Hamburg - Germany
Phone: +49 (0)40 460094 126
Fax: +49 (0)40 460094 270
E-Mail: <a class="moz-txt-link-abbreviated" href="mailto:meier-fleischer@dkrz.de">meier-fleischer@dkrz.de</a>
URL: <a class="moz-txt-link-abbreviated" href="http://www.dkrz.de">www.dkrz.de</a>
Geschäftsführer: Prof. Dr. Thomas Ludwig
Sitz der Gesellschaft: Hamburg
Amtsgericht Hamburg HRB 39784
</pre>
</body>
</html>