Re: [Scilab-users] plot versus date

2016-01-18 Thread Serge Steer

Le 18/01/2016 09:15, jbaud...@insa-rennes.fr a écrit :

Hi,

Le 18/01/2016 09:00, anna78 a écrit :

Hi all,
I'm beginner of SCILAB.

I have the file here after reported, made of 5 columns.
I would like to plot column 4 versus column 1, column 1 being a date 
in the

yymmdd format.
Is there any way to make SCILAB understand the x-axis is a date in 
yymmdd

format?



I think, first you need to split yymmdd in a vector [yy,mm,dd]
> yy=floor(meas_date/1);
> mm=floor(meas_date/100)-100*yy;
> dd=meas_date-100*mm-1*yy;
and convert this vector with datenum([yy,mm,dd])


and see also the x_ticks property in the axes_properties help page.

Jean-Yves
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users



___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] plot versus date

2016-01-18 Thread jbaud...@insa-rennes.fr

Hi,

Le 18/01/2016 09:00, anna78 a écrit :

Hi all,
I'm beginner of SCILAB.

I have the file here after reported, made of 5 columns.
I would like to plot column 4 versus column 1, column 1 being a date in the
yymmdd format.
Is there any way to make SCILAB understand the x-axis is a date in yymmdd
format?



I think, first you need to split yymmdd in a vector [yy,mm,dd]
> yy=floor(meas_date/1);
> mm=floor(meas_date/100)-100*yy;
> dd=meas_date-100*mm-1*yy;
and convert this vector with datenum([yy,mm,dd])

Jean-Yves
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


[Scilab-users] plot versus date

2016-01-18 Thread anna78
Hi all,
I'm beginner of SCILAB.

I have the file here after reported, made of 5 columns.
I would like to plot column 4 versus column 1, column 1 being a date in the
yymmdd format. 
Is there any way to make SCILAB understand the x-axis is a date in yymmdd
format?
thanks!
anna


meas_date[yymmdd], particle(0=p,1=c), energy_mm, pu_avg_mm, pu_std_mm
150628 0 74 0.70 0.05 
150711 0 74 0.68 0.06 
150725 0 74 0.71 0.05 
150802 0 74 0.65 0.06 
150829 0 74 0.63 0.08 
150905 0 74 0.67 0.06 
150927 0 74 0.74 0.10 
151018 0 74 0.77 0.13 
151101 0 74 -5.37 0.06 
151101 0 74 -5.48 0.06 
151106 0 74 -5.82 0.09 
151115 0 74 -5.09 0.07 
151121 0 74 -6.00 0.06 
151128 0 74 -5.56 0.06 
151208 0 74 -5.72 0.05 
151219 0 74 0.64 0.06 
160105 0 74 0.59 0.07 




--
View this message in context: 
http://mailinglists.scilab.org/plot-versus-date-tp4033297.html
Sent from the Scilab users - Mailing Lists Archives mailing list archive at 
Nabble.com.
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users