[Scilab-users] R: plot versus date

2016-01-18 Thread anna78
Thank you.
And a question more: is there any way to 90° -rotate the x-axis ticks label?

Da: jbaudais [via Scilab / Xcos - Mailing Lists Archives] 
[mailto:ml-node+s994242n4033298...@n3.nabble.com]
Inviato: lunedì 18 gennaio 2016 9.26
A: Parravicini Anna
Oggetto: Re: plot versus date

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
[hidden email]
http://lists.scilab.org/mailman/listinfo/users


If you reply to this email, your message will be added to the discussion below:
http://mailinglists.scilab.org/plot-versus-date-tp4033297p4033298.html
To unsubscribe from plot versus date, click 
here.
NAML




--
View this message in context: 
http://mailinglists.scilab.org/R-plot-versus-date-tp4033306.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


Re: [Scilab-users] R: plot versus date

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

Hi,

Le 19/01/2016 08:29, anna78 a écrit :

Thank you.
And a question more: is there any way to 90° -rotate the x-axis ticks label?



90-rotation exists for the label but I don't see any rotate for the 
ticks.  I don't know if it's possible with Scilab.


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


Re: [Scilab-users] R: plot versus date

2016-01-19 Thread Jan-Åge Langeland




On 19.01.2016 11:25, jbaud...@insa-rennes.fr wrote:

Hi,

Le 19/01/2016 08:29, anna78 a écrit :

Thank you.
And a question more: is there any way to 90° -rotate the x-axis ticks 
label?



90-rotation exists for the label but I don't see any rotate for the 
ticks.  I don't know if it's possible with Scilab.


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





It is possible to rotate the whole plot by using for instance:
z(1,length(x))=0
param3d(x,y1,z,180,0)
param3d(x,y2,z,180,0)

It may then be possible to cut&paste to get what you want.

JÅ

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


Re: [Scilab-users] R: plot versus date

2016-01-19 Thread Samuel Gougeon

Hello,

Le 19/01/2016 08:29, anna78 a écrit :


Thank you.

And a question more: is there any way to 90° -rotate the x-axis ticks 
label?



You may use LaTeXed labels, rotated with \rotatebox{90}{..}, as in:

plot(1:200)
ax = gca();
L = ax.x_ticks.labels;
ax.x_ticks.labels = "$\rotatebox{90}{"+L+"}$";



The angle in °  is anticlockwise.

Regards
Samuel Gougeon

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