mescla.plotting.diagrams

Figures for EMMA and mixing analyses.

Every function takes an optional ax and returns the Axes it drew on, so the figures compose into panels. Identity is always carried by marker shape and a direct label as well as by colour – see mescla.plotting.theme for why.

Functions

plot_loadings

Eigenvector loadings: which species drive which component.

plot_measured_vs_predicted

Measured against mixing-predicted concentration, all species on one panel.

plot_mixing_line

A bivariate tracer plot with the end-members and the mixing polygon.

plot_ratios

Stacked mixing ratios, one column per sample.

plot_ratios_with_uncertainty

Mixing ratios with their intervals, one panel per end-member.

plot_reaction_departures

Departure from the mixing prediction, per species: the one-panel reaction summary.

plot_residuals

Residual against observed concentration, one panel per species.

plot_scree

Eigenvalues against the broken-stick expectation and the rule of one.

plot_ternary

Three-component mixing ratios on a ternary diagram.

plot_uspace

The mixing diagram: samples and candidate end-members in U-space.