Call matplotlib.pyplot.savefig(filename) with filename as the desired filename to save the plot as. plt.plot([1, 2], [3, 4]). plt.savefig("plots.pdf").
確定! 回上一頁