Hi all,
Why is it that when a maximum is set for a histogram (by SetAxisRange), it is not reset with the rest of the entries when calling h.Reset()?
Cheers,
Nir
Hi all,
Why is it that when a maximum is set for a histogram (by SetAxisRange), it is not reset with the rest of the entries when calling h.Reset()?
Cheers,
Nir
It is on purpose
Rene
Is there another way to get the real hist maximum and not the set one, then?
hist.GetMaximum()
Rene
hist.GetMaximum gets the maximum that was set by SetAxisRange and is not reset with the entries.
Is the way to get the true maximum of the histogram’s values just looping over its bins?
You can reset the min/max previously set with
myhist.SetAxisRange(-1111,-1111,“y”);
or simply reset the maximum with
myhist.SetMaximum(-1111);
Rene
Great, that worked. Thanks.