Skip to content

Commit

Permalink
Merge pull request #56 from ktf/ktf-patch-1
Browse files Browse the repository at this point in the history
Workaround overflows in alphanumeric histos
  • Loading branch information
ktf committed Feb 5, 2015
2 parents 2e7ec52 + e315e17 commit 9b000a3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions hist/hist/src/TAxis.cxx
Expand Up @@ -309,7 +309,7 @@ Int_t TAxis::FindBin(const char *label)
if (!fLabels) {
if (!fParent) return -1;
fLabels = new THashList(1,1);
SetCanExtend(kTRUE);
// SetCanExtend(kTRUE);
SetAlphanumeric(kTRUE);
if (fXmax <= fXmin) {
//L.M. Dec 2010 in case of no min and max specified use 0 ->NBINS
Expand All @@ -330,7 +330,7 @@ Int_t TAxis::FindBin(const char *label)
}
else {
Info("FindBin","Label %s not in the list will be added to the histogram",label);
SetCanExtend(kTRUE);
// SetCanExtend(kTRUE);
SetAlphanumeric(kTRUE);
}
}
Expand Down Expand Up @@ -782,7 +782,7 @@ void TAxis::SetBinLabel(Int_t bin, const char *label)
// check for Alphanumeric case (labels for each bin)
if (fLabels->GetSize() == fNbins) {
SetAlphanumeric(kTRUE);
SetCanExtend(kTRUE);
// SetCanExtend(kTRUE);
}
}

Expand Down

0 comments on commit 9b000a3

Please sign in to comment.