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

4 visualizzazioni (ultimi 30 giorni)
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? 

Risposta accettata

MathWorks Support Team
MathWorks Support Team il 20 Nov 2025 alle 0:00
Modificato: MathWorks Support Team il 20 Nov 2025 alle 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ゴシック";

Più risposte (0)

Categorie

Scopri di più su Line Plots in Help Center e File Exchange

Tag

Non è stata ancora inserito alcun tag.

Community Treasure Hunt

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

Start Hunting!

Translated by