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

186 vues (au cours des 30 derniers jours)
DIA
DIA le 25 Fév 2020
Réponse apportée : michio le 25 Fév 2020
figureでplotしたとき,set(gca,'FontSize',20);でグラフ全体の文字サイズは変更できたのですが、
このようにx軸のみ文字サイズを変更することはできるでしょうか?
宜しくお願いします

Réponse acceptée

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

Plus de réponses (0)

Catégories

En savoir plus sur 対話型コントロールとコールバック dans Help Center et File Exchange

Produits


Version

R2019a

Community Treasure Hunt

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

Start Hunting!