Reference / binference.plotting.plot_trace

binference.plotting.plot_trace

binference.plotting.plot_trace(result, idx=None, *, max_bins=4, fig=None, which='fractions')[source]

Trace plots of the fractions (or which="rates", …) in selected bins, one line per chain.

Parameters:
resultPopulationResult
idxsequence of int, optional

Bins to show; None chooses the max_bins with the largest mean.

max_binsint, optional

Number of bins shown when idx is None.

figmatplotlib Figure, optional

Figure to draw on; None makes a new one.

which{“fractions”, “rates”, “density”, “selected”}, optional

Quantity shown: fractions, rates, densities or the selected population.