plot(x, y, 'b-', 'LineWidth',1.5); set(gca,'FontSize',10,'fontname','Times New Roman'); xlabel('\fontname{宋体}标题/\fontname{Times New Roman}单位') ylabel('\fontname{宋体}标题/\fontname{Times New Roman}单位') xlim([0 10]); ylim([0 10]); set(gca,'YTick',[0 0]) ; set(gca,'YTickLabel',{'0','0'}) ; legend('标题1','标题2','location','SouthEast','Box','off','fontname','宋体')
标签:gca,fontname,set,作图,宋体,Roman,Matlab,New,模板 From: https://www.cnblogs.com/s206/p/17808280.html