<div dir="ltr">Another solution is to use the option axesflag=0 in plot2d and to use the function drawaxis.<br><br>Eric.<br><br><div class="gmail_quote">2008/8/27 Francis Drossaert <span dir="ltr"><<a href="mailto:Francis.Drossaert@pgs.com">Francis.Drossaert@pgs.com</a>></span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi Simon,<br>
<br>
Not sure how to solve your problem completely, but I can give you a<br>
suggestion. The x-ticks labels are strings and not numbers. Even if you<br>
give numbers as you did, Scilab converts them to strings.<br>
<br>
So what you could do is:<br>
- get the handle of the axis. For example with h = gca()<br>
- get the tick data: v1 = h.x_ticks.data<br>
- convert this list into a string vector: for example v2 =<br>
string(datavec(v1))<br>
- and change h.x_ticks.labels = v2<br>
<br>
I have not tested this but I think it should give you ideas how to<br>
proceed. Note that the string vector has be the same length as the<br>
number of ticks which does not have to be . Creating the string vector<br>
from the serial dates and make it look nice could be a bit nasty.<br>
<br>
Cheers,<br>
<br>
Francis<br>
<div><div></div><div class="Wj3C7c"><br>
<br>
-----Original Message-----<br>
From: <a href="mailto:simon.elfert@web.de">simon.elfert@web.de</a> [mailto:<a href="mailto:simon.elfert@web.de">simon.elfert@web.de</a>]<br>
Sent: 27 August 2008 16:51<br>
To: <a href="mailto:users@lists.scilab.org">users@lists.scilab.org</a><br>
Subject: [scilab-Users] plotting date on x-axis<br>
<br>
Hi everybody,<br>
<br>
I want to plot some timeseries where the x-ticks are dates (for example<br>
"Nov. 1987" or "1.11.87").<br>
That's where I am today...<br>
forum<br>
-------------<br>
dt = datenum(y, m, d);      // y, m, d are vectors with information on<br>
year, month and day<br>
all = [dt, data1, data2, data3];                  // data1-3 are<br>
data-vectors<br>
-------------<br>
<br>
till here I get:<br>
<br>
-------------<br>
all=<br>
    724216.    6.6894479    6.6952958    0.20484<br>
    724217.    7.8806429    8.1755199    0.21636<br>
    724218.    9.0097742    10.1717      0.22731<br>
    724219.    9.3107634    11.451789    0.2525200<br>
    724220.    9.3775043    12.343613    0.3197800<br>
    724221.    9.3765812    12.939786    0.4009100<br>
    724222.    9.2700891    13.249661    0.5409700<br>
    724223.    9.1931381    13.444237    0.5119000<br>
    724224.    9.0925598    13.484509    0.47847<br>
------------<br>
<br>
when I plot that ( plot(all(:,1), [all(:,2), all(:,3), all(:,4)]) ), I<br>
only get the serial dates (first column) on the x-axis.<br>
<br>
Do you, how I could go on? I guess I need something like what is<br>
datetick for matlab (found that expression on my research through the<br>
net).<br>
<br>
Thank you,<br>
Simon<br>
<br>
</div></div>This email and any files contained therein is confidential and may contain privileged information.  If you are not the named addressee(s) or you have otherwise received this in error, you should not distribute or copy this e-mail or use any of its content for any purpose. Please notify the sender immediately by e-mail if you have received this e-mail in error and delete it from your system<br>

</blockquote></div><br></div>