Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
couet committed Dec 13, 2019
1 parent e559e4b commit a06f3b4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
1 change: 0 additions & 1 deletion graf2d/graf/src/TGaxis.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -918,7 +918,6 @@ void TGaxis::ImportAxisAttributes(TAxis *axis)
SetTitle(axis->GetTitle());
SetTitleOffset(axis->GetTitleOffset());
SetTitleSize(axis->GetTitleSize());
/// SetMaxDigits(axis->GetMaxDigits());
SetBit(TAxis::kCenterTitle, axis->TestBit(TAxis::kCenterTitle));
SetBit(TAxis::kCenterLabels, axis->TestBit(TAxis::kCenterLabels));
SetBit(TAxis::kRotateTitle, axis->TestBit(TAxis::kRotateTitle));
Expand Down
10 changes: 9 additions & 1 deletion hist/histpainter/src/TPaletteAxis.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,15 @@ void TPaletteAxis::Paint(Option_t *)
}
}
}
Int_t ndiv = fH->GetZaxis()->GetNdivisions() % 100; //take primary divisions only

// Take primary divisions only
Int_t ndiv = fH->GetZaxis()->GetNdivisions();
Bool_t isOptimized = ndiv>0;
Int_t absDiv = abs(ndiv);
Int_t maxD = absDiv/1000000;
ndiv = absDiv%100 + maxD*1000000;
if (!isOptimized) ndiv = -ndiv;

char chopt[6] = "S ";
chopt[1] = 0;
strncat(chopt, "+L", 3);
Expand Down

0 comments on commit a06f3b4

Please sign in to comment.