Postprocessing module: Cornerplot

Function to plot overlapping corner plots with input as two or three 2d posterior arrays

postprocessing.Cornerplot.overlapping_corner_three(array1, array2, param_labels=None, sample_labels=None, save_plot=False, filename='corner_plot.pdf')[source]

Creates a corner plot using three 2D arrays, overlapping them with different colors, and displays histograms with consistent binning for comparison. Histograms are unfilled, the y-axis is kept on the first histogram, the x-axis is kept on the last histogram, and the last histogram has a label beneath the x-axis showing the parameter it represents.

Parameters:

array1, array22D arrays

The input datasets. Each should be of shape (n_samples, n_params), where n_samples is the number of samples, and n_params is the number of parameters. Arrays can have different lengths (n_samples).

param_labelslist of str, optional

The labels for each parameter to use in the corner plot. Defaults to None, in which case generic labels will be used.

save_plotbool, optional

Whether to save the plot to a file. Defaults to False.

filenamestr, optional

The filename to save the plot if save_plot=True. Defaults to “corner_plot.pdf”.

Returns:

None

Displays the corner plot.