[Matlab绘图] Matlab中的YGrid、横坐标倾斜、设置字体

ax = gca;  % 设置YGrid
ax.YGrid = 'on';
ax.YMinorGrid = 'on';
set(gca, 'XTickLabelRotation', 45);  % 横坐标倾斜45度
set(gca, 'FontName', 'Times New Roman', 'FontSize', 10);  % 设置论文字体

 

原文地址:https://www.cnblogs.com/virter/p/14264624.html