Save figure
This commit is contained in:
parent
eac58f519f
commit
8956dfefed
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -1,6 +1,9 @@
|
||||||
# ide
|
# ide
|
||||||
.idea
|
.idea
|
||||||
|
|
||||||
|
# figures
|
||||||
|
*.png
|
||||||
|
|
||||||
# Byte-compiled / optimized / DLL files
|
# Byte-compiled / optimized / DLL files
|
||||||
__pycache__/
|
__pycache__/
|
||||||
*.py[cod]
|
*.py[cod]
|
||||||
|
|
|
@ -31,4 +31,4 @@ for i in range(0, args.iter):
|
||||||
plt.plot(best_fit)
|
plt.plot(best_fit)
|
||||||
plt.xlabel("Epoch")
|
plt.xlabel("Epoch")
|
||||||
plt.ylabel("Fitness")
|
plt.ylabel("Fitness")
|
||||||
plt.show()
|
plt.savefig("fig.png")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user