s407259-mlworkshops/generate_plot.py
2019-05-16 12:32:08 +02:00

23 lines
560 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.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.get_figure().savefig('./historical_srr_plot')