s407259-mlworkshops/generate_plot.py
2019-05-16 12:49:19 +02:00

31 lines
662 B
Python

import pandas as pd
from matplotlib.ticker import MaxNLocator
data = pd.read_csv('./s407259-matrics-data/historical_wer_mean.txt', header=None)
plot = data.tail(50).plot()
plot.xaxis.set_major_locator(MaxNLocator(integer=True))
plot.get_legend().remove()
plot.set_xlabel('sample')
plot.set_ylabel('wer')
plot.get_figure().savefig('./historical_wer_mean_plot')
data = pd.read_csv('./s407259-matrics-data/historical_srr.txt', header=None)
plot = data.tail(50).plot()
plot.xaxis.set_major_locator(MaxNLocator(integer=True))
plot.get_legend().remove()
plot.set_xlabel('sample')
plot.set_ylabel('srr')
plot.get_figure().savefig('./historical_srr_plot')