I have several TH3F histograms which I am drawing with “glcolz”. I was wondering if it is possible to use the same colors for all of them, so all to be drawn showing the same (0 - 30) rang on the color palette, even if the actual maximum bin content is below 30 for most of them. I have attached a figure to illustrate what I have at the moment.
before drawing, for all histograms, does not change the results. It is not that I want the color palette to not exceed a certain maximum, I actually want the color palette to go above the maximum bin content, and this way have the same color palette for all histograms for a direct comparisson.
I once applied a “brutal fix” to such a problem.
I modified all relevant histograms destroying two bins:
MyHisto->SetBinContent(1, 1, MyMinimum);
MyHisto->SetBinContent(MyHisto->GetNbinsX(), MyHisto->GetNbinsY(), MyMaximum);