py21cmmc.analyse.corner_plot#

py21cmmc.analyse.corner_plot(samples, include_lnl=True, show_guess=True, start_iter=0, thin=1, **kwargs)[source]#

Make a corner plot given samples.

Parameters:
  • samples (py21cmmc.cosmoHammer.HDFStorage instance) – The samples attribute of a sampler (i.e. the return value of run_mcmc()), or equivalently, the return value of get_samples().

  • include_lnl (bool, optional) – Whether to plot the log-likelihood as if it were a parameter.

  • show_guess (bool, optional) – Whether to show the initial guess as “truths” in the corner plot.

  • start_iter (int, optional) – The first iteration to include in the plotted samples.

  • thin (int, optional) – Use only every “thin” sample to plot.

  • kwargs – All kwargs are passed directly to the corner function from the corner package.

Returns:

fig – Matlotlib figure object.