From efaa7ae9c1ad0cf20aac088cdea3611714aa86e7 Mon Sep 17 00:00:00 2001 From: alexhroom Date: Fri, 13 Dec 2024 17:42:07 +0000 Subject: [PATCH] fixed axes --- RATapi/examples/bayes_benchmark/bayes_benchmark.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/RATapi/examples/bayes_benchmark/bayes_benchmark.py b/RATapi/examples/bayes_benchmark/bayes_benchmark.py index db2bfe8..58f1666 100644 --- a/RATapi/examples/bayes_benchmark/bayes_benchmark.py +++ b/RATapi/examples/bayes_benchmark/bayes_benchmark.py @@ -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")