Jump to content

Larger Font Size


Recommended Posts

  • 7 years later...
  • 1 year later...

I use findall to change the font size for all text in a single figure:

 

set(findall(gcf,'-property','FontSize'),'FontSize',12)

 

DefaultAxesFontSize is a better programming practice, but when you use set() the property names are not case sensitive. You can also go to fontvilla for to check different sizes of custom fonts.

set(0,'defaultaxisfontsize',30) or set(0, 'DefaultAxesFontSize', 30) only works for axes text created after the call to set(); it does not change the size for any existing text object, which the findall() version does change.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...