Changing Fonts Size in Matlab Plots

sosruko picture sosruko · Jan 19, 2012 · Viewed 203.5k times · Source

I want to change Font Size for xlabel, ylabel, axis size, legend font size a.k.a everything at once, is this possible? By default, font is Helvetica 10.

Is there way to change this?

I want to use 'FontSize',14, for x or y labels.

Answer

sergeyf picture sergeyf · Jul 11, 2012

Jonas's answer is good, but I had to modify it slightly to get every piece of text on the screen to change:

set(gca,'FontSize',30,'fontWeight','bold')

set(findall(gcf,'type','text'),'FontSize',30,'fontWeight','bold')