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

675 views (last 30 days)
Kobi
Kobi on 22 Aug 2014
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 Comment
rucha k
rucha k on 28 Jun 2018
How do I resize fonts of scope (xy axes labeling fonts, numbers on axes, etc) in MATLAB 2015a?

Sign in to comment.

Accepted Answer

Ben11
Ben11 on 22 Aug 2014
Use the 'FontSize' property of the current axes:
set(gca,'FontSize',20)
  6 Comments

Sign in to comment.

More Answers (1)

Adam
Adam on 22 Aug 2014
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.

Products

Community Treasure Hunt

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

Start Hunting!

Translated by