Skip to content
Snippets Groups Projects
Commit 4ffd4783 authored by Colm Talbot's avatar Colm Talbot
Browse files

make evidences work in labels without overwriting list make evidences work...

make evidences work in labels without overwriting list make evidences work rather than bayes factors
parent ab2f2e23
No related branches found
No related tags found
1 merge request!204Resolve "Plot multiple overwrites labels with evidences"
......@@ -665,11 +665,12 @@ def plot_multiple(results, filename=None, labels=None, colours=None,
if evidences:
if np.isnan(results[0].log_bayes_factor):
template = ' $\mathrm{{ln}}(Z)={:1.3g}$'
template = ' $\mathrm{{ln}}(Z)={lnz:1.3g}$'
else:
template = ' $\mathrm{{ln}}(B)={:1.3g}$'
for i, label in enumerate(labels):
labels[i] = label + template.format(results[i].log_bayes_factor)
template = ' $\mathrm{{ln}}(B)={lnbf:1.3g}$'
labels = [template.format(lnz=result.log_evidence,
lnbf=result.log_bayes_factor)
for ii, result in enumerate(results)]
axes = fig.get_axes()
ndim = int(np.sqrt(len(axes)))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment