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
Basisboth are posteriors over its components, shared among the bins as inassignment_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;
Nonemakes a new figure.- n_drawsint, optional
Population draws averaged for the shrunk posterior.
- colormatplotlib colour, optional
Colour of the shrunk posterior;
Nonetakes the style’s first colour.- sample_colormatplotlib colour, optional
Colour of the object’s own likelihood;
Nonetakes the style’s second colour.
- Returns:
- matplotlib Axes