Created
September 22, 2020 20:18
-
-
Save stephtdouglas/62f3d8408df65731ab7a9e6b086b4c41 to your computer and use it in GitHub Desktop.
Save date in filename
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import matplotlib.pyplot as plt | |
from datetime import date | |
today = date.today().isoformat() | |
plt.savefig("filename_{0}.png".format(today)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment