Lets’ say that I have a 2D histograms and I set up the maximum and minimum values (with SetMaximum and SetMinimum methods). Is it possible to show the bins that are outside the [minimum, maximum[ range in a specific display?
For instance:
using “lego2z” with a color not in the palette
using “text” with a different style.
One could use a method like “SetColorOverMax(kBlue)”, “SetColorBelowMin(kRed)”
I don’t know if it is yet feasible or if implies some development. I am using root 5.22/00
I guess the way to do that would be to change your palette accordingly to the minimum and maximum you set. For all the value above the maximum you put a clearly different color and the same for the values below the minimum. The following macro shows how to define your own palette:
But how can I force a TH2 cell to have a specific color?
I could use a THStack with 2 histograms, as shown in the tutorials, but this seems overkilling to me.
you cannot force a color to a specific cell the color for a cell is taken from the palette according to the content of the cell. But you can define your palette in a way that all the cell having a content equal or greater than a given value are all the same. (that is what you asked seems to me)