MATLAB Answers

Hassan
0

change the font size of the current axis

Asked by Hassan
on 15 Jun 2011
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.

Tags

1 Answer

Answer by Matt Fig
on 15 Jun 2011
Edited by MathWorks Support Team on 8 Nov 2018
 Accepted Answer

x = rand(10,10);
y = rand(10,10);
plot(x,y);
set(gca,'FontSize',20)

  2 Comments

thanks a lot Matt.

Sign in to comment.