plot generator

This commit is contained in:
Tomasz Łysiak 2019-05-16 12:32:08 +02:00
parent ec71cbfa78
commit 0a710fb27e
4 changed files with 31 additions and 2 deletions

3
.gitignore vendored Normal file
View File

@ -0,0 +1,3 @@
.idea/
historical_wer_mean_plot.png
historical_srr_plot.png

3
Jenkinsfile vendored
View File

@ -12,6 +12,9 @@ pipeline {
sh 'git --version'
sh 'git checkout'
sh 'python3 generate_plot.py'
archiveArtifacts artifacts: 'historical_srr_plot'
archiveArtifacts artifacts: 'historical_wer_mean_plot'
}
}
}

View File

@ -1 +1,23 @@
print('I am in')
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')

View File

@ -1 +1,2 @@
pandas
pandas
matplotlib