在使用Matlab画图时,一个解决去掉figure边框右边及上边的刻度的方法。
box off
ax2 = axes('Position',get(gca,'Position'),...
'XAxisLocation','top',...
'YAxisLocation','right',...
'Color','none',...
'XColor','k','YColor','k');
set(ax2,'YTick', []);
set(ax2,'XTick', []);
box on
————————————————————————————
原文链接:https://blog.csdn.net/zqliu133/article/details/60867771