ium_434704/create_chart.py
Wojciech Jarmosz bc20b3e4e4 Fixes for chart
2021-05-15 03:27:23 +02:00

21 lines
414 B
Python

import sys
import os.path
import matplotlib
from matplotlib import pyplot as plt
x = []
y = []
if os.path.exists('bulk_metrics.txt'):
with open('bulk_metrics.txt') as file:
for line in file.readlines():
single_x, single_y = line.split(" ")
x.append(single_x)
y.append(float(single_y))
plt.plot(x, y)
plt.xlabel('Job')
plt.ylabel('RMSE')
plt.savefig('chart.png')