Skip to content

Adds function to generate multiple-result corner plots

Gregory Ashton requested to merge add-multiple-plot into master

Closes #110 (closed)

This is a basic version. It's going to fall over as soon as you try to give it mismatched results (i.e. when you have different dimensionality).

Here is an example using the two linear regression examples:

import tupak

A = tupak.result.read_in_result(filename='outdir/linear_regression_unknown_noise_result.h5')
B = tupak.result.read_in_result(filename='outdir/linear_regression_result.h5')

tupak.result.plot_multiple([A, B], parameters=['m', 'c'])

Note - you need to specify parameters here (which is passed through to plot_corner) to make the dimensionality the same.

linear_regression_unknown_noise_linear_regression_unknown_noise_linear_regression

Merge request reports

Loading