Skip to content

Instantly share code, notes, and snippets.

@stephtdouglas
Created September 22, 2020 20:18
Show Gist options
  • Save stephtdouglas/62f3d8408df65731ab7a9e6b086b4c41 to your computer and use it in GitHub Desktop.
Save stephtdouglas/62f3d8408df65731ab7a9e6b086b4c41 to your computer and use it in GitHub Desktop.
Save date in filename
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