python matplotlib 保存pdf去白边 plt.savefig()前加plt.tight_layout() plt.tight_layout() #去除pdf周围白边 plt.savefig('test.pdf')