CosmoFit.FitPlotter

class CosmoFit.FitPlotter(fitter)[source]

Bases: object

Plotting methods for a Fitter.

Parameters:

fitter (stats.fitter.Fitter) – The (already constructed) fitter to plot. MCMC- and best-fit-dependent plots require run_mcmc() / best_fit() to have been called first; the data-vs-model figures (hubble_diagram(), hz(), bao_distances()) work from fitter.cosmology as it currently stands (initial point) if neither has been run yet.

__init__(fitter)[source]

Methods

__init__(fitter)

bao_distances([save_path, n_draws, seed])

DESI BAO distance plot: one panel per observable type (D_M/r_d, D_H/r_d, D_V/r_d), each showing the tracers' measurements against the model curve.

chain([save_path])

Trace plot of every free parameter's walkers vs. MCMC step.

cmb_lensing([save_path])

CMB lensing bandpowers against the model.

cmb_spectra([save_path])

The CMB angular power spectra: measured bandpowers against the model, with a residual panel under each.

compare_bao_distances([other_fits, labels, ...])

DESI BAO distance plot (see bao_distances()) with this fit's curves and one or more other models' curves over the same tracer data.

compare_deceleration([other_fits, labels, ...])

Deceleration parameter q(z) (see deceleration()) for this fit and one or more other models on the same axes, each with its own deceleration/acceleration transition redshift z_t marked -- the standard model-vs-model transition -redshift comparison figure.

compare_des_hubble_diagram([other_fits, ...])

DES-SN5YR Hubble diagram (see des_hubble_diagram()) with this fit's curve and one or more other models' curves over the same supernova data.

compare_growth([other_fits, labels, ...])

fsigma8(z) growth-rate diagram (see growth()) with this fit's curve overlaid with one or more other models' curves over the same RSD data -- the standard model-vs-model growth-of-structure figure.

compare_hubble_diagram([other_fits, labels, ...])

Pantheon+ Hubble diagram (see hubble_diagram()) with this fit's curve and one or more other models' curves over the same supernova data -- the standard model-vs-model apparent-magnitude comparison figure.

compare_hz([other_fits, labels, save_path, ...])

H(z) diagram (see hz()) with this fit's curve overlaid with one or more other models' curves over the same Cosmic Chronometers data -- the standard model-vs-model H(z) figure.

compare_sdss_bao_distances([other_fits, ...])

SDSS BAO distance plot (see sdss_bao_distances()) with this fit's curves and one or more other models' curves over the same tracer data.

compare_w0_wa_plane([other_fits, labels, ...])

The (w0, wa) plane (see w0_wa_plane()) with several posteriors overlaid -- the "what does adding this dataset do to w0-wa?" figure, one contour set per fit.

compare_w_of_z([other_fits, labels, z_max, ...])

Dark-energy equation of state w(z) (see w_of_z()) for this fit and one or more other models on the same axes.

corner([burnin, save_path])

Corner (triangle) plot of the free-parameter posterior.

deceleration([z_max, save_path, n_draws, seed])

Deceleration parameter q(z) = -1 + (1+z) E'(z)/E(z), with a posterior band, marking the deceleration/acceleration transition redshift z_t where q(z) = 0.

des_hubble_diagram([save_path, n_draws, seed])

DES-SN5YR Hubble diagram: distance modulus vs. redshift, with a residuals sub-panel.

eboss_surface([dataset, save_path])

An eBOSS DR16 tabulated BAO likelihood, drawn as the surface it actually is, with the current model's prediction on it.

growth([save_path, n_draws, seed])

fsigma8(z) growth-rate diagram: RSD measurements (e.g. the "Gold-2018" compilation) against the model's fsigma8(z) curve (fsigma8()).

hubble_diagram([save_path, n_draws, seed])

Pantheon+ Hubble diagram: corrected apparent magnitude vs. redshift, with a residuals sub-panel.

hz([save_path, n_draws, seed])

Cosmic Chronometer H(z) diagram: expansion-rate measurements vs. redshift against the model H(z) curve.

lowz_bao_distances([save_path, n_draws, seed])

Low-redshift BAO plot (6dFGS z=0.106, SDSS DR7 MGS z=0.15): one panel per observable type against the model curve.

planck_residuals([save_path])

Standardized-residual ("pull") plot for the Planck distance-prior vector (R, l_A, omega_b_h2):

sdss_bao_distances([save_path, n_draws, seed])

SDSS BAO distance plot (BOSS DR12 + eBOSS DR16 LRG/QSO): one panel per observable type (D_M/r_d, D_H/r_d), each showing the tracers' measurements against the model curve.

union3_hubble_diagram([save_path, n_draws, seed])

Union3 Hubble diagram: binned distance modulus vs. redshift, with a residuals sub-panel.

w0_wa_plane([burnin, levels, bins, smooth, ...])

The (w0, wa) plane: this fit's 2D posterior contours on top of the four dark-energy regions -- phantom, quintessence, quintom-A, quintom-B -- with LCDM marked at (-1, 0).

w_of_z([z_max, save_path, n_draws, seed])

Dark-energy equation-of-state evolution w(z), with a posterior band and the LCDM reference line w = -1 -- the standard w0-wa dark-energy figure.