フィルターのクリア

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 Center および File ExchangeGraphics Object Programming についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by