Injection pipeline (aug.plot.injections, v0.2)
Every function takes an InjectionSet, plus an optional sub-table to pick
injections, and returns (fig, axes).
| Function | Figure |
|---|---|
plot_injection_overview(shot, res) |
emission + P_ECRH/P_NBI; t(-lboN) in red, onsets in black, fit window shaded |
plot_aligned_injections(res, table) |
injections aligned on the onset and normalized; linear rise + log decay |
plot_decay_fits(res, table, ncol=4) |
mosaic: data from the peak, single fit (red) and double fit (blue, with components), residuals |
plot_tau_single_vs_double(table) |
single τ vs. τ_slow; filled = identifiable double |
plot_window_sensitivity(res, table) |
τ by window start (marker) and length (color) |
from aug.plot.injections import plot_decay_fits
fe = res.table.query("species == 'Fe'")
fig, _ = plot_decay_fits(res, fe, ncol=4)
fig.savefig("fe_fits.pdf")
A # in titles is escaped only when text.usetex is on.
Legacy (v0.1)
aug.plot.shot:plot_overview,plot_decay,plot_decay_panel,
plot_multi_lbo,plot_ne_profile,plot_model_comparison.aug.plot.group:plot_mosaic,plot_ne_profiles,
plot_species_comparison,plot_dataset_map.
Since v0.2 they use Shot.emission() (physical sign) and default_signal
through Shot.decay.