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.
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.
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.
Accepted AnswerThere is no specific default font for MATLAB. MATLAB chooses a font to display based on your Java settings.
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')
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With