Axis#
- class uvex_transients.phase_space.space.Axis(name: str, lo: float, hi: float, label: str = '', unit: str = '', scale: str = 'log10')[source]#
One axis of a phase-space map.
- Raises:
ValueError – If name is not an identifier, the range is not finite and increasing, or scale is not one of the two.
Methods
from_dict(data)Rebuild an axis from
to_dict().to_dict()Return the axis as plain types, which an ECSV header can hold.
Attributes
The range
(lo, hi).What a figure calls the axis, in mathtext if it has symbols, for example
r"$L_\mathrm{FUV}$".Whether the coordinate is the base-10 logarithm of the quantity (
"log10", the default) or the quantity itself ("linear").The unit of the underlying quantity, for example
"erg/s"or"day", which a figure writes next to the label.The name of the coordinate, which is its column name in every table.
The lower end of the range, in the units of the coordinate (so in dex for a
"log10"axis).The upper end of the range, in the units of the coordinate.