Skip to content
Snippets Groups Projects
Commit e19d8065 authored by Jörg Martin's avatar Jörg Martin
Browse files

Fixed missing error-bars

parent 980b8b1a
No related branches found
No related tags found
No related merge requests found
......@@ -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')
......
......@@ -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))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment