StringBin

class coffea.hist.StringBin(name, label=None)[source]

Bases: object

A string used to fill a sparse axis

Totally ordered, lexicographically by name.

Parameters:
  • name (str) – Name of the bin, as used in Hist.fill calls

  • label (str) – The str representation of this bin can be overriden by a custom label, which will be used preferentially in legends produced by hist.plot1d, etc.

Attributes Summary

label

Label of this bin, mutable

name

Name of this bin, Immutable

Attributes Documentation

label

Label of this bin, mutable

name

Name of this bin, Immutable