Why does font selection differ in Live Script charts between MATLAB versions in particular when Japanese characters are used?

4 次查看(过去 30 天)
I have noticed a significant difference between R2021a and R2024b in certain features related to titles, labels, and ticks in Live Script charts, particularly when using Japanese characters. Were there any changes in graphical specifications between these versions? Is there any way to make R2024b revert this feature to behave as it did in R2021a? 

采纳的回答

MathWorks Support Team
MathWorks Support Team 2025-11-20,0:00
编辑:MathWorks Support Team 2025-11-20,23:56
For displaying figures in the Live Editor, a certain framework library is used. Due to differences in the specifications of this library’s versions across MATLAB releases, the fonts applied to text elements may vary, which is likely the cause of the display differences you are seeing.
By default, the axis font (FontName) is set to "Helvetica." This setting allows MATLAB to choose what it considers the most appropriate font for each computer environment. However, by specifying a commonly used font name like "Arial," you can explicitly control how the text is rendered. I recommend trying the following steps to set the fonts as desired:
ax = gca;ax.FontName = 'Arial'; % This will change the axis font, including the tick labels, at onceax.Title.FontName = "BIZ UDゴシック";ax.XLabel.FontName = "HG創英角ポップ体";ax.YLabel.FontName = "MS Pゴシック";

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Line Plots 的更多信息

标签

尚未输入任何标签。

Community Treasure Hunt

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

Start Hunting!

Translated by