From 8b76ec02d6249aa52ba5eadf3c9d7eb9a01f7d71 Mon Sep 17 00:00:00 2001 From: Farid Mohammadi <farid.mohammadi@iws.uni-stuttgart.de> Date: Tue, 31 Mar 2020 09:53:43 +0200 Subject: [PATCH] [PostProcessing] adapted the Diagnostic plots to show the errors for all outputs less transparent in addition to the mean. --- BayesValidRox/PostProcessing/PostProcessing.py | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/BayesValidRox/PostProcessing/PostProcessing.py b/BayesValidRox/PostProcessing/PostProcessing.py index a0a0ca30a..36c0baf3a 100644 --- a/BayesValidRox/PostProcessing/PostProcessing.py +++ b/BayesValidRox/PostProcessing/PostProcessing.py @@ -745,9 +745,22 @@ class PostProcessing: else: plotLabel = plot SeqValues = np.nan_to_num(SeqValues) + + # Plot the error evolution for each output + for i in range(SeqValues.shape[1]): + plt.semilogy(x_idx, SeqValues.mean(axis=1), marker=markers[idx], + ls='--', lw=2, color=colors[idx], alpha=0.25) + + # plt.fill_between(x_idx, SeqValues.mean(axis=1)-2*np.std(SeqValues,axis=1), + # SeqValues.mean(axis=1)+2*np.std(SeqValues,axis=1), color=colors[idx],alpha=0.15) + + plt.semilogy(x_idx, SeqValues.mean(axis=1), marker=markers[idx], ls='--', lw=2, color=colors[idx], label=name.split("_rep",1)[0]) - + + + + plt.xticks(x_idx) plt.xlabel('Number of runs') plt.ylabel(plotLabel) -- GitLab