Skip to content

Commit

Permalink
fixed axes
Browse files Browse the repository at this point in the history
  • Loading branch information
alexhroom committed Dec 13, 2024
1 parent 95aee8b commit efaa7ae
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions RATapi/examples/bayes_benchmark/bayes_benchmark.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,8 @@ def plot_marginalised_result(dimension: int, axes: plt.Axes, limits: tuple[float
for i in range(0, num_params):
RATplot.plot_one_hist(ns_results, i, axes=axes[0][i])
RATplot.plot_one_hist(dream_results, i, axes=axes[1][i])
# we want all 3 plots to have the same x-axis
axes[1][i].set_xlim(*axes[0][i].get_xlim())
plot_marginalised_result(i, axes[2][i], limits=axes[0][i].get_xlim())

axes[0][0].set_ylabel("nested sampler")
Expand Down

0 comments on commit efaa7ae

Please sign in to comment.