Save figure

This commit is contained in:
George Lacey 2017-09-30 17:34:40 +01:00
parent eac58f519f
commit 8956dfefed
2 changed files with 4 additions and 1 deletions

3
.gitignore vendored
View File

@ -1,6 +1,9 @@
# ide
.idea
# figures
*.png
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]

View File

@ -31,4 +31,4 @@ for i in range(0, args.iter):
plt.plot(best_fit)
plt.xlabel("Epoch")
plt.ylabel("Fitness")
plt.show()
plt.savefig("fig.png")