From 80818be6fd421492ab25996dbb8840f62c5ad77f Mon Sep 17 00:00:00 2001 From: Dawid Jurkiewicz Date: Fri, 3 Apr 2020 15:11:36 +0200 Subject: [PATCH] add labels --- plot.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plot.py b/plot.py index 38a46ff..1aacf03 100755 --- a/plot.py +++ b/plot.py @@ -14,6 +14,8 @@ def read_file(filename): def main(): values = read_file(sys.argv[1]) plt.plot(values) + plt.xlabel('runs') + plt.ylabel(sys.argv[1].replace('.txt', '')) plt.savefig(sys.argv[2], dpi=1000) plt.close()