MATLAB Answers

change the font size of the current axis

4,023 views (last 30 days)
How can I change the font size of the axis of the current graph without creating new axis? For example, if we have this plot already, how can I change the font size?
x = rand(10,10);
y = rand(10,10);
plot(x,y)

  0 Comments

Sign in to comment.

Accepted Answer

Matt Fig
Matt Fig on 15 Jun 2011
Edited: MathWorks Support Team on 8 Nov 2018
x = rand(10,10);
y = rand(10,10);
plot(x,y);
set(gca,'FontSize',20)

More Answers (0)

Tags

Community Treasure Hunt

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

Start Hunting!