Skip to content

Commit

Permalink
Merge pull request #30 from ab5424/dist_fix
Browse files Browse the repository at this point in the history
Missing parentheses for `con_int`
  • Loading branch information
arm61 authored Oct 29, 2024
2 parents c41dca4 + 84b9ba7 commit afbe858
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/source/mcmc.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@
}
],
"source": [
"modeller.variables[0].normal, modeller.variables[0].n, modeller.variables[0].con_int"
"modeller.variables[0].normal, modeller.variables[0].n, modeller.variables[0].con_int()"
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion uravu/plotting.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def plot_distribution(distro, axes=None, figsize=(5, 3)): # pragma: no cover
ordinate = kde.evaluate(abscissa)
axes.plot(abscissa, ordinate, color=colors[0])
axes.hist(distro.samples, bins=25, density=True, color=colors[0], alpha=0.5)
axes.fill_betweenx(np.linspace(0, ordinate.max() + ordinate.max() * 0.1), distro.con_int[0], distro.con_int[1], alpha=0.2)
axes.fill_betweenx(np.linspace(0, ordinate.max() + ordinate.max() * 0.1), distro.con_int()[0], distro.con_int()[1], alpha=0.2)
axes.set_ylim((0, ordinate.max() + ordinate.max() * 0.1))
return axes

Expand Down

0 comments on commit afbe858

Please sign in to comment.