for idx, file in enumerate(files): plt.savefig("fig/" + "{}.pdf".format(idx))
--With enumerate, number and save
Recommended Posts