add labels

This commit is contained in:
Dawid Jurkiewicz 2020-04-03 15:11:36 +02:00
parent 7774ef986e
commit 80818be6fd

View File

@ -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()