Skip to content

Commit

Permalink
TH3 palette title was equal to the z-axis title (#12177)
Browse files Browse the repository at this point in the history
  • Loading branch information
couet committed Feb 1, 2023
1 parent cfd32df commit 2eefa59
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions hist/histpainter/src/TPaletteAxis.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -446,6 +446,8 @@ void TPaletteAxis::Paint(Option_t *)
Int_t theColor, color;
// import Attributes already here since we might need them for CJUST
if (fH->GetDimension() == 2) fAxis.ImportAxisAttributes(fH->GetZaxis());
// for 3D histograms there is no palette's title
if (fH->GetDimension() > 2) fAxis.SetTitle("");
// case option "CJUST": put labels directly at color boundaries
TLatex *label = nullptr;
TLine *line = nullptr;
Expand Down

0 comments on commit 2eefa59

Please sign in to comment.