How do I modify the font type of all open figures in MATLAB 7.9 (R2009b)?

조회 수: 24 (최근 30일)
I would like to modify the font type of all text objects (e.g. title, x label, etc.) inside open figures.

채택된 답변

MathWorks Support Team
MathWorks Support Team 2009년 12월 4일
To modify the font type, and eventually other text properties, of all open figures you can follow this procedure:
1) Obtain all figure handles using the FINDALL function.
2) Obtain all text objects handles using the FINDALL function.
3) Modify selected properties through the SET function.
You can find an example of this procedure in the following code:
fh = findall(0,'Type','Figure');
txt_obj = findall(fh,'Type','text');
set(txt_obj,'FontName','Calibri','FontSize',15);
For more on handle graphics, please open the documentation and navigate to MATLAB->Graphics->Understanding Handle Grahpics Objects.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Labels and Annotations에 대해 자세히 알아보기

제품


릴리스

R2009b

Community Treasure Hunt

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

Start Hunting!

Translated by