Cat
- class coffea.hist.Cat(name, label, sorting='identifier')[source]
Bases:
SparseAxis
A category axis with name and label
- Parameters:
name (str) – is used as a keyword in histogram filling, immutable
label (str) – describes the meaning of the axis, can be changed
sorting ({'identifier', 'placement', 'integral'}, optional) – Axis sorting when listing identifiers. Default ‘placement’ Changing this setting can effect the order of stack plotting in
hist.plot1d
.
The number of categories is arbitrary, and can be filled sparsely Identifiers are strings
Attributes Summary
Number of bins
Sorting definition to adhere to
Methods Summary
List of
StringBin
identifiersindex
(identifier)Index of a identifer or label
Attributes Documentation
- size
Number of bins
Methods Documentation