Skip to content

Commit efaa7ae

Browse files
committed
fixed axes
1 parent 95aee8b commit efaa7ae

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

RATapi/examples/bayes_benchmark/bayes_benchmark.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,8 @@ def plot_marginalised_result(dimension: int, axes: plt.Axes, limits: tuple[float
237237
for i in range(0, num_params):
238238
RATplot.plot_one_hist(ns_results, i, axes=axes[0][i])
239239
RATplot.plot_one_hist(dream_results, i, axes=axes[1][i])
240+
# we want all 3 plots to have the same x-axis
241+
axes[1][i].set_xlim(*axes[0][i].get_xlim())
240242
plot_marginalised_result(i, axes[2][i], limits=axes[0][i].get_xlim())
241243

242244
axes[0][0].set_ylabel("nested sampler")

0 commit comments

Comments
 (0)