When using matplotlib.pyplot.savefig , the file format can be specified by the extension: from matplotlib import pyplot as plt plt.savefig('foo.png') ...
確定! 回上一頁