add labels
This commit is contained in:
parent
7774ef986e
commit
80818be6fd
2
plot.py
2
plot.py
@ -14,6 +14,8 @@ def read_file(filename):
|
|||||||
def main():
|
def main():
|
||||||
values = read_file(sys.argv[1])
|
values = read_file(sys.argv[1])
|
||||||
plt.plot(values)
|
plt.plot(values)
|
||||||
|
plt.xlabel('runs')
|
||||||
|
plt.ylabel(sys.argv[1].replace('.txt', ''))
|
||||||
plt.savefig(sys.argv[2], dpi=1000)
|
plt.savefig(sys.argv[2], dpi=1000)
|
||||||
plt.close()
|
plt.close()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user