specsrbench.figures.fig3_residual_maps

Figure 3 – residual maps: every held-out spectrum, sorted by redshift.

Each panel is method - reference for all 572 spectra, stacked with redshift running up the vertical axis, with the scatter of the residual plotted beneath against the reference’s own noise floor.

The dashed tracks are the loci lambda_obs = lambda_rest (1 + z) for eight strong lines, following Figure 5 of Paper 1. They are what makes the map readable: a diagonal ridge that follows a track is a real line the method is getting wrong, and one that does not is instrumental. Without them every ridge is unlabelled and could be either.

Module Attributes

COLORS

Figure 3 draws on a diverging colour map, where deeppink and teal read as data rather than as legend entries.

EM_LINE_TRACKS

Rest wavelengths (um) of the lines traced over each map.

Functions

build([cache, outdir])

specsrbench.figures.fig3_residual_maps.COLORS = {'LR': 'gray', 'TV': 'mediumseagreen'}

Figure 3 draws on a diverging colour map, where deeppink and teal read as data rather than as legend entries.

specsrbench.figures.fig3_residual_maps.EM_LINE_TRACKS: dict[str, float] = {'H$\\alpha$': 0.6563, 'H$\\beta$': 0.4861, 'HeI': 1.083, 'Ly$\\alpha$': 0.1216, 'Pa$\\alpha$': 1.8751, 'Pa$\\beta$': 1.2818, '[OIII]': 0.5007, '[OII]': 0.3727}

Rest wavelengths (um) of the lines traced over each map.

specsrbench.figures.fig3_residual_maps.build(cache=None, outdir=None)[source]
Parameters:

outdir (Path | None)

Return type:

Path