[scilab-Users] x-axis and y-axis
paul.carrico at free.fr
paul.carrico at free.fr
Mon Jun 25 11:58:26 CEST 2012
Hi
Here is an example of a curve plotting ... the data come from a text file (i.e. psd persently)
You can find good tutorials on the net
Paul
####################################################################
noms_fichiers = ["3 sigma" "1 sigma"];
POSITION_LEGENDE = 2 ;
scf(1);
drawlater();
xgrid(3);
f = gcf();
f.figure_size = [1000, 1000];
f.background = color(245,245,245);
a = gca();
a.font_size = 2;
a.x_label.text = "Frequency [Hz]" ;
a.x_label.font_size = 4;
a.y_label.text = "PSD [g²/Hz]";
a.Y_label.font_size = 4;
a.title.font_size = 5;
a.line_style = 1;
a.tight_limits = "on";
a.data_bounds=[20,0.1;20000,1000];
a.log_flags = 'll'; // BE CAREFUL : log-log plotting
// curves
plot(psd(:,1),psd(:,2))
e1 = gce()
p1 = e1.children
p1.thickness = 2
p1.line_style = 0
p1.foreground = 2
plot(psd(:,1),psd(:,3))
e2 = gce()
p2 = e2.children
p2.thickness = 2
p2.line_style = 0
p2.foreground = 5
// legend
legend(noms_fichiers,pos=POSITION_LEGENDE)
drawnow();
xs2gif(1,PATH_FILE + '/spectrum.gif');
----- Mail original -----
De: "Tima" <meni.tima at hotmail.com>
À: users at lists.scilab.org
Envoyé: Lundi 25 Juin 2012 10:52:21
Objet: [scilab-Users] x-axis and y-axis
Hi,
How can I rename my axis.
For example for the title, I make xtitle('Name')?
there's commands to do that?
Thanks,
Tima
--
View this message in context: http://mailinglists.scilab.org/x-axis-and-y-axis-tp4024431.html
Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com.
--
To unsubscribe from this mailing-list, please send an empty mail to
users-unsubscribe at lists.scilab.org
To check the archives of this mailing list, see
http://mailinglists.scilab.org/
More information about the users
mailing list