mescla.plotting.diagrams.plot_ratios_with_uncertainty¶
- mescla.plotting.diagrams.plot_ratios_with_uncertainty(result, uncertainty, axes=None, theme='light', order_by=None, max_samples=60)[source]¶
Mixing ratios with their intervals, one panel per end-member.
The figure that stops a reader over-reading a five-point difference between two samples. A stacked bar of point estimates cannot show that a fraction is +/- 0.12; this can, so prefer it whenever you have run
monte_carlo_ratios()or a resampling.- Parameters:
result (MixingResult)
uncertainty (dict) – As returned by
monte_carlo_ratios(),jackknife_endmembers()orbootstrap_endmembers()– anything withlowerandupperarrays shaped likeresult.ratios.axes (array of matplotlib Axes, optional)
theme ({"light", "dark"} or Theme)
order_by (int, optional) – Sort samples by this end-member’s contribution. Sorting makes the spread legible; sample order rarely does.
max_samples (int, default 60) – Above this many samples the dots collide; the panel switches to a shaded interval band with the estimate drawn over it.
- Returns:
array of matplotlib Axes
- Return type: