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

4 views (last 30 days)
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? 

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 20 Nov 2025 at 0:00
Edited: MathWorks Support Team on 20 Nov 2025 at 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ゴシック";

More Answers (0)

Categories

Find more on Line Plots in Help Center and File Exchange

Tags

No tags entered yet.

Community Treasure Hunt

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

Start Hunting!