How can one change the font for graphics to sans serif?
조회 수: 45(최근 30일)
표시 이전 댓글
https://www.mathworks.com/matlabcentral/answers/49446-how-can-i-change-the-fontface-of-a-text-within-a-plot
shows
set(gca, 'FontName', 'Times New Roman')
changes the font face of text in graphics. Then how can one change it to Sans Serif? I have tried
set(gca, 'FontName', 'Sans Serif')
But this did not help.
댓글 수: 0
채택된 답변
Cris LaPierre
2021년 8월 21일
I suspect the issue here is one of spelling. In my system, it would be 'SansSerif'
set(gca, 'FontName', 'SansSerif')
추가 답변(0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!