s407259-mlworkshops/generate_plot.py

31 lines
662 B
Python
Raw Normal View History

2019-05-16 12:32:08 +02:00
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()
2019-05-16 12:49:19 +02:00
plot.set_xlabel('sample')
plot.set_ylabel('wer')
2019-05-16 12:32:08 +02:00
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()
2019-05-16 12:49:19 +02:00
plot.set_xlabel('sample')
plot.set_ylabel('srr')
2019-05-16 12:32:08 +02:00
plot.get_figure().savefig('./historical_srr_plot')