figureのx軸ま​たはy軸のみの文字サ​イズを変更する

250 ビュー (過去 30 日間)
DIA
DIA 2020 年 2 月 25 日
回答済み: michio 2020 年 2 月 25 日
figureでplotしたとき,set(gca,'FontSize',20);でグラフ全体の文字サイズは変更できたのですが、
このようにx軸のみ文字サイズを変更することはできるでしょうか?
宜しくお願いします

採用された回答

michio
michio 2020 年 2 月 25 日
も参考になりますが、XAxis, YAxis プロパティの FontSize をいじれば行けそうです。
例:
plot(rand(20,2));
h_axes = gca;
h_axes.XAxis.FontSize = 20;

その他の回答 (0 件)

カテゴリ

Help Center および File Exchange2 次元および 3 次元プロット についてさらに検索

製品


リリース

R2019a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!