[Scilab-users] plot versus date

Serge Steer Serge.Steer at inria.fr
Mon Jan 18 14:43:07 CET 2016


Le 18/01/2016 09:15, jbaudais at 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/10000);
> > mm=floor(meas_date/100)-100*yy;
> > dd=meas_date-100*mm-10000*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 at lists.scilab.org
> http://lists.scilab.org/mailman/listinfo/users
>




More information about the users mailing list