MATLAB设置坐标轴线条粗细

 

clear clc x = 1: 20; y = 24.2:0.2:28; subplot(2,2,1) plot(x,y,'+-') title('LineWidth = 3') set(gca, 'LineWidth',3) subplot(2,2,2) plot(x,y,'+-') title('LineWidth = 2') set(gca, 'LineWidth',2) subplot(2,2,3) plot(x,y,'+-') title('LineWidth = 1') set(gca, 'LineWidth',1) subplot(2,2,4) plot(x,y,'+-') title('LineWidth = 0.5') set(gca, 'LineWidth',0.5) 

 

【note】显示器上,第三和第四个子图的线条粗细不容易区分,但打印机输出后效果就很明显了。

 

你可能感兴趣的:(MATLAB,matlab,plot)