Figures¶
eemkit.plot draws publication figures with matplotlib (pip install eemkit[plot]).
Each function returns a matplotlib figure; plot.save(fig, "fig1") writes
fig1.pdf (vector, embedded fonts) and fig1.png (300 dpi).
| function | figure |
|---|---|
eem(ax, da) |
filled contours of one EEM; missing cells (removed scatter) in grey |
eems({title: da, ...}) |
small multiples; vmax per panel or shared_scale=True |
components(model, split_half) |
each component's EEM and loadings, with the split-half models behind |
spectral_factors(ds) |
the excitation and emission correction factors applied |
rank_diagnostics(table, chosen=3) |
explained variance, core consistency and split-half congruence vs rank, one panel each |
leverage(model, by="river") |
leverage vs residuals, the most extreme samples labelled |
channel_signals(sig, model) |
LED and filter channels on the mean modelled EEM, and the share of each component in each channel |
scores_over(df, cols, x="campaign", by="river") |
mean ± SD per group over time, samples as faint points |
Widths default to two journal columns (180 mm); plot.SINGLE_COLUMN is 85 mm.
Colour¶
- Intensities use one sequential hue by default, white (0) to dark blue. A
vmaxbelow the scatter peaks keeps fluorescence readable in uncorrected EEMs; values above it share the darkest colour. cmap="eclipse"(ineem,eems,components) gives the violet, blue, green, yellow, red scale of the Cary Eclipse software instead, which is familiar when comparing with the instrument's own plots. Rainbow scales are not perceptually ordered and create false boundaries between hues (Crameri et al. 2020, Nat. Commun. 11, 5444), so prefer the default for print. The desktop application andpipeline.export_figuresuse thedisplay.eem_colourssetting (default"eclipse").- Groups and components follow a fixed categorical order
(
plot.CATEGORICAL): blue, orange, aqua, ... The first three are distinguishable in any combination under the common colour-vision deficiencies; groups also differ in marker shape, so colour is never the only cue. More than eight groups are refused. - Different quantities never share a y-axis:
rank_diagnosticsuses three panels rather than a twin axis.