1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58
|
clear
courbes_epaisseur=3
axes_epaisseur=3
axes_taille=4
axes_legend_taille=6
legend_taille=2
legend_traits=1.5
figure_longueur=1000
figure_largeur=800
x=linspace(0,2,30);
y1=cos(x)
y2=exp(x)
scf(1)
clf(1)
f=gcf()
f.figure_size = [figure_longueur,figure_largeur]
a1 = newaxes()
plot(x,y1,'b','thickness',courbes_epaisseur)
xlabel('x', 'font_size', axes_legend_taille)
ylabel('cos(x)', 'font_size', axes_legend_taille)
a1.box="off"
a1.thickness=axes_epaisseur
a1.font_size=axes_taille
a1.y_location="right"
legend("cos(x)",2)
a1.children(1).font_size=legend_taille
a1.children(1).thickness=legend_traits
a2 = newaxes();
a2.filled = 'off'; //If the property is "off", the background is not drawn, the axes box is transparent.
a2.auto_ticks = ['off', 'on', 'on']; //remove ticks on first x-axis
plot(x,y2,'r','thickness',courbes_epaisseur)
ylabel('exp(x)', 'font_size', axes_legend_taille)
a2.box="off"
a2.thickness=axes_epaisseur
a2.font_size=axes_taille
a2.y_location="left"
legend("exp(x)","exp(x)",1)
a2.children(1).font_size=legend_taille
a2.children(1).thickness=legend_traits |
Partager