1.python绘图解决出图不完整问题
plt.savefig("test.png",dpi=500,bbox_inches = 'tight')#解决出图不完整问题
plt.show()
2.matlab绘图去除周边空白
参考:https://blog.csdn.net/shanchuan2012/article/details/53980288
(1)set(gca,'LooseInset',get(gca,'TightInset'))
(2)set(gca,'LooseInset',get(gca,'TightInset'));set(gca,'looseInset',[0 0 0 0])