From a384cd4a2a86f150000f1e4bee3783fc066cadf5 Mon Sep 17 00:00:00 2001 From: "alicja.m.musial" Date: Fri, 3 Apr 2020 19:39:11 +0200 Subject: [PATCH] plot 4 --- Jenkinsfile | 2 ++ plotCreator.py | 8 ++------ 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index ee54106..de49da5 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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') diff --git a/plotCreator.py b/plotCreator.py index 191dc91..49e6690 100644 --- a/plotCreator.py +++ b/plotCreator.py @@ -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')