Reference / binference.plotting.plot_individual

binference.plotting.plot_individual

binference.plotting.plot_individual(result, i, ax=None, *, n_draws=200, color=None, sample_color=None)[source]

Compare object i’s own likelihood (flat-prior posterior) with its shrunk posterior.

With a Basis both are posteriors over its components, shared among the bins as in assignment_probabilities(); the own curve takes a population flat in z over the components, which is flat over the bins exactly for flat components or hats on evenly spaced bins.

Parameters:
resultPopulationResult or PointEstimate
iint

Index of the object.

axmatplotlib Axes, optional

Axes to draw on; None makes a new figure.

n_drawsint, optional

Population draws averaged for the shrunk posterior.

colormatplotlib colour, optional

Colour of the shrunk posterior; None takes the style’s first colour.

sample_colormatplotlib colour, optional

Colour of the object’s own likelihood; None takes the style’s second colour.

Returns:
matplotlib Axes