Matlab axis label Chinese setting Song style

Output Chinese Song Dynasty and New Roman characters for y coordinates

x=[1,2,3,4,5,6,7];
plot(x)
ylabel('\fontname{宋体}\fontsize{20}长度\fontname{Times New Roman}\fontsize{10}  (μm)')

The font and size can be flexibly set, as shown in the picture below

 

You can also set the same font for the text in the entire image

set(gca,'FontSize',9,'Fontname', 'Times New Roman');

 Easily implemented.

Guess you like

Origin blog.csdn.net/Vertira/article/details/133415350