Default Figure Fonts
古いコメントを表示
How do I set the default font for figures to Ariel, instead of Helvetica? I have tried "set(0,'DefaultTextFontName','Ariel')" but it does not change the title or axis labels. I also tried "set(0,'DefaultFigureFontName')", and got an error. ------ Thanks, all. At Jan's suggestion, I added "set(0,'DefaultAxesFontName','Arial') to the start of my code, and it did what I wanted: set the title, axis labels, tic labels, and legend all to Arial on all figures. I also corrected my spelling at Razvan's suggestion, but that alone did not work; apparently Matlab is smart enough to recognize that error, for it already used Arial for text blocks in my figures.
1 件のコメント
Jan
2012 年 2 月 8 日
Whenever you writein the forum, that you get an error, copy the error message also.
採用された回答
その他の回答 (1 件)
Jan
2012 年 2 月 8 日
The following properties can be defined as defaults:
'defaultUicontrolFontName'
'defaultUitableFontName'
'defaultAxesFontName'
'defaultTextFontName'
'defaultUipanelFontName'
The figures do not have a FontName property. What exactly are the "figure labels"?
カテゴリ
ヘルプ センター および File Exchange で Discrete Fourier and Cosine Transforms についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!