py21cmmc.analyse.trace_plot#

py21cmmc.analyse.trace_plot(samples, include_lnl=True, show_guess=True, start_iter=0, thin=1, colored=False)[source]#

Make a trace plot given samples.

Parameters:
  • samples (py21cmmc.cosmoHammer.HDFStorage) – 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.

  • colored (bool, optional) – Whether to use a color-cycle to color each walker. Otherwise each trace is black.

Returns:

fig, ax – Matlotlib figure and axis objects.