From e19d8065859b62131ac4b5b0fa70984bc4f0d865 Mon Sep 17 00:00:00 2001
From: Joerg Martin <joerg.martin@ptb.de>
Date: Mon, 14 Feb 2022 12:49:52 +0000
Subject: [PATCH] Fixed missing error-bars

---
 Experiments/plot_deviation_scatter.py | 2 +-
 Experiments/plot_summary.py           | 7 ++++---
 2 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/Experiments/plot_deviation_scatter.py b/Experiments/plot_deviation_scatter.py
index be33ea5..f067ee6 100644
--- a/Experiments/plot_deviation_scatter.py
+++ b/Experiments/plot_deviation_scatter.py
@@ -73,7 +73,7 @@ plt.ylabel(r'$|$'+'prediction'+r'$-g(x)$'+r'$|$')
 # plt.ylim([0,1.0])
 # plt.xlim([0,1.0])
 x_values = np.linspace(0, 1)
-plt.plot(x_values, x_values, 'k--')
+plt.plot(x_values, x_values, linestyle='dotted', color='k')
 plt.gca().set_aspect('equal', adjustable='box')
 plt.tight_layout()
 plt.savefig(f'results/figures/deviation_scatter.pdf')
diff --git a/Experiments/plot_summary.py b/Experiments/plot_summary.py
index 4c7780a..42d002c 100644
--- a/Experiments/plot_summary.py
+++ b/Experiments/plot_summary.py
@@ -18,7 +18,7 @@ font = {'family' : 'DejaVu Sans',
         'size'   : 16}
 
 matplotlib.rc('font', **font)
-k = 2
+k = 1
 
 
 # load in all available result files
@@ -182,14 +182,14 @@ for i, ([(eiv_metric_mean, eiv_metric_std),
             plt.plot(i+1, eiv_metric_mean, '^', color=colors[0])
             plt.bar(i+1,
                     height = 2*eiv_bar_size,
-                    width = 0.1,
+                    width = 0.3,
                     bottom = eiv_metric_mean - eiv_bar_size,
                     color=colors[0],
                     alpha=0.5)
             plt.plot(i+1, noneiv_metric_mean, '^', color=colors[1])
             plt.bar(i+1,
                     height = 2 * k *noneiv_bar_size,
-                    width = 0.1,
+                    width = 0.3,
                     bottom = noneiv_metric_mean - k*  noneiv_bar_size,
                     color=colors[1],
                     alpha=0.5)
@@ -244,6 +244,7 @@ for i, ([(eiv_metric_mean, eiv_metric_std),
                     bottom = noneiv_metric_mean - k*  noneiv_bar_size,
                     color=colors[1],
                     alpha=0.5)
+
 plt.ylim(bottom=0, top=ymax)
 ax = plt.gca()
 ax.set_xticks(np.arange(1,len(data_list)+1))
-- 
GitLab