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

bounds

The range (lo, hi).

label

What a figure calls the axis, in mathtext if it has symbols, for example r"$L_\mathrm{FUV}$".

scale

Whether the coordinate is the base-10 logarithm of the quantity ("log10", the default) or the quantity itself ("linear").

unit

The unit of the underlying quantity, for example "erg/s" or "day", which a figure writes next to the label.

name

The name of the coordinate, which is its column name in every table.

lo

The lower end of the range, in the units of the coordinate (so in dex for a "log10" axis).

hi

The upper end of the range, in the units of the coordinate.