How does Matlab set the Chinese and English fonts for the legend and coordinate axes in the figure?

Tip: After the article is written, the table of contents can be automatically generated. For how to generate it, please refer to the help document on the right

 

1. Question:

When writing an article or thesis, the editor requires the Chinese in the picture to be in Chinese version and Times New Roman in English, and only one font can be set in the figure editor, either Chinese is garbled, or the English in the Chinese line will also become Chinese version. .

 After the picture is edited, it is very troublesome to change the code, and you need to reset the picture, as follows:

xlabel(['\fontname{宋体}时间\fontname{Times new roman}/s']);
ylabel(['\fontname{宋体}长度\fontname{Times new roman}/mm']);
......

2. Solution:

Click figure to edit the drawing, you can directly change Chinese and English to different fonts! ! !
 


Guess you like

Origin blog.csdn.net/qq_50598558/article/details/122451731