Hi everybody!
I have a 2D histogram with many empty bins. I would like them to appear white when using a rainbow colour palette. In the z scale I have positive and negative values.
If I use the colz option it is colz1, then I manage to make the empty bins appear white. But I would like to use the option surf2 to make maxima and minima more evident. Is there a way to plot the empty bins as white also in this case ?
However, I cannot understand the meaning of the command Double_t Red[Number] = {1.00, 0.00, 1.00, 1.00, 0.00}; Am I defining 5 colours? From the class documentation I cannot understand…
Yes in that case you define the 5 colors for each oh them you specify the value of Red Green and Blue.
And the position (in % on the palette length (Length vector)). You need to figure out when the 0 is. That can easily computed with the Min and Max of the histogram. CreateGradientColorTable then bail the palette for you