From bc20b3e4e4cdbf9df938ab25b68088dd3e88c7dc Mon Sep 17 00:00:00 2001 From: Wojciech Jarmosz Date: Sat, 15 May 2021 03:27:23 +0200 Subject: [PATCH] Fixes for chart --- create_chart.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/create_chart.py b/create_chart.py index a550f61..77aa26e 100644 --- a/create_chart.py +++ b/create_chart.py @@ -10,12 +10,11 @@ y = [] if os.path.exists('bulk_metrics.txt'): with open('bulk_metrics.txt') as file: for line in file.readlines(): - print(line.split(" ")) single_x, single_y = line.split(" ") x.append(single_x) - y.append(single_y) + y.append(float(single_y)) plt.plot(x, y) -plt.xlabel('Jobs') +plt.xlabel('Job') plt.ylabel('RMSE') plt.savefig('chart.png')