matlab図面座標軸の数値フォントサイズを定義する方法

1059 ワード

方法1:図を描き終えたFigureウィンドウで、メニューEdit-Axes Properties....-Font-Font Sizeで設定できます.
=================================================================
方法2:plotコマンドで図を描いた後、set(gca,'FontSize',20);を選択します.
 
以下は、座標デジタルフォントを変更したり、座標軸フォントfigure(7)を変更したりすることができる.subplot(2,1,2); plot(time,u,'r'); xlabel('時間(秒)');ylabel('制御量入力');set(gca,'FontSize',14); % 座標軸の寸法、凡例、見出しなどに影響を与える文字サイズを設定します.set(get(gca,'XLabel'),'FontSize',14);%図上の文字は8 pointまたは小5号set(get(gca,'YLabel'),'FontSize',14);
magnifyOnFigure%ローカル拡大上図
subplot(2,1,1); plot(time,u,'r'); xlabel('時間(秒)');ylabel('制御量入力');set(gca,'FontSize',14); % 座標軸の寸法、凡例、見出しなどに影響を与える文字サイズを設定します.set(get(gca,'XLabel'),'FontSize',14);%図上の文字は8 pointまたは小5号set(get(gca,'YLabel'),'FontSize',14);
set(gca,'FontName','Times New Roman','FontSize',14) , 

‘FontWeight’,’bold’   ‘FontAngle’,’italic’