使用如下代码即可: set(gca, 'XTick', 1:50, 'XTickLabel', app_name,'FontSize',14) set(gca,'XTickLabelRotation',90) 效果如下所示: