plot 4
This commit is contained in:
parent
468dfdbf5a
commit
a384cd4a2a
2
Jenkinsfile
vendored
2
Jenkinsfile
vendored
@ -9,11 +9,13 @@ pipeline {
|
||||
git 'https://git.wmi.amu.edu.pl/s452097/s452097-plots'
|
||||
}
|
||||
}
|
||||
|
||||
stage('Copy all results'){
|
||||
steps {
|
||||
copyArtifacts filter: 'wer.txt, srr.txt', fingerprintArtifacts: true, projectName: 's452097-metrics', selector: lastSuccessful()
|
||||
}
|
||||
}
|
||||
|
||||
stage('Create plots'){
|
||||
steps {
|
||||
sh('chmod +x ./plotGenerator.sh')
|
||||
|
@ -10,10 +10,6 @@ def readFile(file):
|
||||
return countL, y2
|
||||
|
||||
def createplot(sourceFile):
|
||||
if sourceFile == 'wer.txt'
|
||||
name = 'WER'
|
||||
if sourceFile == 'srr.txt'
|
||||
name = 'SRR'
|
||||
|
||||
readFile(sourceFile)
|
||||
# Data for plotting
|
||||
@ -22,8 +18,8 @@ def createplot(sourceFile):
|
||||
|
||||
fig, ax = plt.subplots()
|
||||
ax.plot(x, y)
|
||||
ax.set(xlabel='Build number', ylabel='Percent of '+name,
|
||||
title=name+' metric for ASR')
|
||||
ax.set(xlabel='Build number', ylabel='Percent [%]'+,
|
||||
title='Metric for ASR')
|
||||
ax.grid()
|
||||
|
||||
fig.savefig(name+'.png')
|
||||
|
Loading…
Reference in New Issue
Block a user