plot_mcmc_comparison¶
- ell1fit.mcmc_utils.plot_mcmc_comparison(samples_list, labels_list, names, fname, colors=None, **corner_kwargs)[source]¶
Overlay two or more posteriors on their shared parameter subspace.
Built for comparing nested models that share a prefix of parameters (e.g. ell1decay’s M0/M1 delta_tasc fits, which share
beta[0..2]and differ only in whetherbeta[3]exists): each sample set is restricted to the labels common to every set (order taken fromlabels_list[0]), then overlaid on one figure viacorner’s own documented two-dataset pattern – callcorner.corneronce per set, reusing the returnedfig.- Parameters:
- samples_listlist of array-like
One flat-samples array per model, shape
(nsamples_i, ndim_i).- labels_listlist of list of str
That model’s parameter labels, same order as its samples’ columns.
- nameslist of str
Legend entry per model (e.g.
["M0", "M1"]).- colorslist of str or None
One color per model. Defaults to matplotlib’s own color cycle.