[scilab-Users] changing font size in a figure
Carrico, Paul
paul.carrico at esterline.com
Wed Feb 23 11:01:55 CET 2011
Hi
An extract herebellow ... plus an interesting doc
Paul
#################################################
drawlater();
xgrid(3);
f = gcf(); // Active le handle "Figure"
//f // affiche les parametres de f
f.figure_size = [1000, 1000]; // définition de la taille de la figure
f.background = color(245,245,245); // couleur arrière-plan de la figure
a = gca(); // Active le handle "Axes"
//a // affiche les propriétés du handle "Axes"
a.font_size = 2; // taille des chiffres des axes (font_size = enfant de a = "axes")
a.x_label.text = string(nom_grandeur_physique1(1,1)) ; // nom axe X (text = enfant de x_label)
a.x_label.font_size = 4; // definition de la taille des caractères (font_size = enfant de x_label)
a.y_label.text = "S_eq de VON MISES [MPa]";
a.Y_label.font_size = 4;
a.title.text = (string(TITRE_GRAPHIQUE)); // titre de la figure
a.title.font_size = 5;
a.line_style = 1; // definition du style des axes
legend(noms_fichiers,pos=POSITION_LEGENDE)
drawnow();
________________________________
De : Loïc GIROD [mailto:Loic.Girod at esstin.uhp-nancy.fr]
Envoyé : mercredi 23 février 2011 10:56
À : users at lists.scilab.org
Objet : [scilab-Users] changing font size in a figure
Hello,
I would like to change the default value of the font size of axis labels in a figure.
It works well with the command
Xset("font size",4)
Before plotting the graph but, as xset is now obsolete, I would like to use the set command to do set same thing with the axes_properties but I can't find the way to make it work.
Many Thanks
Best Regards
Loïc
--------------------------------------------------------------------------------
Le présent mail et ses pièces jointes sont confidentiels et destinés à la personne ou aux personnes visée(s) ci-dessus. Si vous avez reçu cet e-mail par erreur, veuillez contacter immédiatement l'expéditeur et effacer le message de votre système. Toute divulgation, copie ou distribution de cet e-mail est strictement interdite.
This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please contact the sender and delete the email from your system. If you are not the named addressee you should not disseminate, distribute or copy this email.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20110223/a2755ce0/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fiche_graphiques.pdf
Type: application/octet-stream
Size: 1801187 bytes
Desc: fiche_graphiques.pdf
URL: <https://lists.scilab.org/pipermail/users/attachments/20110223/a2755ce0/attachment.obj>
More information about the users
mailing list