目录
图像边缘宽度
单幅图像
原始方法
fig = figure;
plot(peaks)
saveas(fig, 'plot_original.png');
改善方法
fig = figure;
plot(peaks)
ax = gca;
outerpos = ax.OuterPosition;
ti = ax.TightInset;
left = outerpos(1) + ti(1);
bottom = outerpos(2) + ti(2);
ax_width = outerpos(3) - ti(1) - ti(3);
ax_height = outerpos(4) - ti(2) - ti(4);
ax.Position = [left bottom ax_width ax_height];
saveas(fig, 'plot_modify.png');
单幅图像去除坐标轴
原始方法
fig = figure;
plot(peaks)
axis off
saveas(fig, 'plot_original.png');
改善方法
多幅图像
对比结果如下所示: