savepath = os.path.join(directory, filename). if verbose: print("Saving figure to '%s'..." % savepath),. # Actually save the figure. plt.savefig(savepath).
確定! 回上一頁