how to change the font size in a plot (only for the axes numbers)?

208 ビュー (過去 30 日間)
Kobi
Kobi 2014 年 8 月 22 日
as you can see in the attached image i need to change only the size of the numbers not the title or the colorbar how can i do this? thank you
  1 件のコメント
rucha k
rucha k 2018 年 6 月 28 日
How do I resize fonts of scope (xy axes labeling fonts, numbers on axes, etc) in MATLAB 2015a?

サインインしてコメントする。

採用された回答

Ben11
Ben11 2014 年 8 月 22 日
Use the 'FontSize' property of the current axes:
set(gca,'FontSize',20)
  6 件のコメント
Adam
Adam 2014 年 8 月 22 日
Be sure to add the title before setting font size. If you change font size then add the title it will be in the font size you just set. Though you can change it again afterwards.
Giuseppe Degan Di Dieco
Giuseppe Degan Di Dieco 2022 年 4 月 6 日
Thanks all, definitevely brief and working. Best.

サインインしてコメントする。

その他の回答 (1 件)

Adam
Adam 2014 年 8 月 22 日
If you search for 'tick labels' or something similar, in the file exchange there are numerous options that replace the tick labels locked into the axes font size with text objects that can be manipulated independently.
I can't vouch for any particular one as I have never used any of them though.

カテゴリ

Help Center および File ExchangeFormatting and Annotation についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by