from matplotlib import pyplot as plt plt.savefig('foo.png') ... [10,20,3]) fig.savefig('path/to/save/image/to.png') # save the figure to file plt.close(fig) ...
確定! 回上一頁