Get Number Of Bins

Hi,

Is there a function or an example or a way to get the number of bins of a histogram? I can’t seem to find any.

Leo

TH1::GetNbinsX
TH1::GetNbinsY
TH1::GetNbinsZ
See also “Convention for numbering bins” in the TH1 class description.

1 Like