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

243 次查看(过去 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 CenterFile Exchange 中查找有关 2 次元および 3 次元プロット 的更多信息

产品


版本

R2019a

Community Treasure Hunt

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

Start Hunting!