Why does font selection differ in Live Script charts between MATLAB versions in particular when Japanese characters are used?
4 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
MathWorks Support Team
el 20 de Nov. de 2025 a las 0:00
Editada: MathWorks Support Team
el 20 de Nov. de 2025 a las 23:56
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?
Respuesta aceptada
MathWorks Support Team
el 20 de Nov. de 2025 a las 0:00
Editada: MathWorks Support Team
el 20 de Nov. de 2025 a las 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 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Line Plots en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!