필터 지우기
필터 지우기

text style in Matlab

조회 수: 280 (최근 30일)
Yu Li
Yu Li 2018년 11월 17일
댓글: Adam Danz 2018년 11월 19일
is it possible to personalize the text style in Matlab, such as 'Arial', 'times new romane', etc?
if not, can anyone tell me what is the default text style in Matlab?
Thanks!
Yu
  댓글 수: 3
Yu Li
Yu Li 2018년 11월 17일
I want have 'Times New Roman' as default style for all situations, but according to Adam's answer I have to set it everytime I run the function.
Adam Danz
Adam Danz 2018년 11월 17일
I don't think you understand the 3rd secton of code in my answer. That section will change the default fontname property. See the comment under my answer for instructions on how to change the font of the IDE (the Matlab user interface).

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

채택된 답변

Adam Danz
Adam Danz 2018년 11월 17일
편집: Adam Danz 2018년 11월 17일
Set the FontName property. Here are some examples.
title('myTitle', 'FontName', 'Times')
xlabel('myLabel', 'FontName', 'Arial')
set(gca, 'FontName', 'Gotham')
To get a list of available fonts:
listfonts
To set the default fonts,
set(0, 'DefaultAxesFontName', 'Arial');
% or any of the following...
'defaultUicontrolFontName'
'defaultUitableFontName'
'defaultAxesFontName'
'defaultTextFontName'
'defaultUipanelFontName'
  댓글 수: 9
Yu Li
Yu Li 2018년 11월 18일
thank you, I think I have got what I want.
Yu
Adam Danz
Adam Danz 2018년 11월 19일
Glad it worked out!

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Graphics Object Programming에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by