plot generator
This commit is contained in:
parent
ec71cbfa78
commit
0a710fb27e
3
.gitignore
vendored
Normal file
3
.gitignore
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
.idea/
|
||||
historical_wer_mean_plot.png
|
||||
historical_srr_plot.png
|
3
Jenkinsfile
vendored
3
Jenkinsfile
vendored
@ -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'
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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')
|
@ -1 +1,2 @@
|
||||
pandas
|
||||
pandas
|
||||
matplotlib
|
Loading…
Reference in New Issue
Block a user