Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Changing Fonts Size in Matlab Plots

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.

like image 688
sosruko Avatar asked Jan 19 '12 22:01

sosruko


People also ask

How do I change font size in MATLAB title?

To change the font units, use the FontUnits property. If you add a title or subtitle to an axes object, then the font size property for the axes also affects the font size for the title and subtitle. The title and subtitle font sizes are the axes font size multiplied by a scale factor.

How do you change the font size on an axis label?

To change the text font for any chart element, such as a title or axis, right–click the element, and then click Font. When the Font box appears make the changes you want.

What font is used in MATLAB plots?

Accepted AnswerThere is no specific default font for MATLAB. MATLAB chooses a font to display based on your Java settings.


1 Answers

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') 
like image 86
sergeyf Avatar answered Sep 21 '22 12:09

sergeyf