Commit 8d8c7629 authored by Gregory Ashton's avatar Gregory Ashton
Browse files

Close #132

- Make the limits autoset to the widest posterior
- Also fix the output filename to make more sense
parent 7ec73413
Pipeline #24651 passed with stages
in 1 minute and 46 seconds
......@@ -268,7 +268,7 @@ class Result(dict):
quantiles=[0.16, 0.84],
levels=(1-np.exp(-0.5), 1-np.exp(-2), 1-np.exp(-9/2.)),
plot_density=False, plot_datapoints=True, fill_contours=True,
max_n_ticks=3)
max_n_ticks=3, hist_kwargs=dict(density=True))
defaults_kwargs.update(kwargs)
kwargs = defaults_kwargs
......@@ -447,7 +447,7 @@ def plot_multiple(results, filename=None, labels=None, colours=None,
kwargs['truths'] = None
fig = results[0].plot_corner(save=False, **kwargs)
default_filename = '{}/{}'.format(results[0].outdir, results[0].label)
default_filename = '{}/{}'.format(results[0].outdir, 'combined')
lines = []
default_labels = []
for i, result in enumerate(results):
......@@ -460,6 +460,11 @@ def plot_multiple(results, filename=None, labels=None, colours=None,
lines.append(matplotlib.lines.Line2D([0], [0], color=c))
default_labels.append(result.label)
# Rescale the axes
for i, ax in enumerate(fig.axes):
ax.autoscale()
plt.draw()
if labels is None:
labels = default_labels
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment