uvex_transients.utils.plotting.get_band_color#

uvex_transients.utils.plotting.get_band_color(band: str) → str[source]#

Look up a photometric band’s plotting color, from config["plotting.band_colors"].

Every gallery example and report figure that plots multiple bands on the same axes (e.g. UVEX’s FUV/NUV alongside Rubin’s u/g/r/i/z/y) shares this single mapping, so a given band always reads as the same color everywhere it appears in the docs.

Parameters:

band (str) – Band name, e.g. "FUV" or "r".

Returns:

A hex color string. Bands not present in config["plotting.band_colors"] fall back to a color sampled from get_default_cmap, keyed by a hash of band so the same unknown band name always maps to the same color, both within and across runs.

Return type:

str