Is there any option to change the font size of figures in the entire MATLABfile?

조회 수: 2 (최근 30일)
Hi all,
I have a MATLAB file with so many figures. Is there any way to insert a line of code at the begging to change the font for all figures?
Currently, I am using a line of code using findall before exporting each figure. Also, is there any code to seperate title font from the rest of fonts in figures?
Thanks

채택된 답변

Jan
Jan 2021년 5월 28일
편집: Jan 2021년 5월 28일
set(groot, 'DefaultTextFontSize', 20)
A smart solution is to consider this from the beginning:
titleFontSize = 18;
...
title('My title', 'FontSize', titleFontSize);
  댓글 수: 1
Wolfgang McCormack
Wolfgang McCormack 2021년 5월 28일
@Star Strider and @Jan. Thank you both, I picked Jan as I saw his answer before yours Star Strider but you are always a great help. Any similar option to groot for seperating the title and the rest of fonts? How should I set the figure lines to bigger lines? :D I know I should have thought about these from the beggining but well things happen.
One more problem, I don't know where on the MATLAB platform I can find the properties for a figure or Types. Any advice where to find them?

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Specifying Target for Graphics Output에 대해 자세히 알아보기

제품


릴리스

R2020b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by