Hi,
I have a two dimensional histogram that has positive and negative values. I use TColor::CreateGradientColorTable
to set the palette but I have the same colour(white) for zero values of histogram and those region of histogram that don’t have values. How can I differ these parts from the real zero values?
Thanks
What do you mean with “don’t have values”? Do you mean bins that haven’t been set to any value or haven’t been filled? Those are indistinguishable from bins that have been set to zero because when you create the histogram all bins are initialized to zero.
When bins have content 0 it is impossible to tell if the bin was never filled or if it was filled many times being in total 0. This is what we explain here (option COL1). I would suggest you first try to use COL1 instead of COL.
Thanks for your answer,
I can’t do it. The histogram has negative and positive values. This is my histogram cos.pdf (47.7 KB)
I set the pallet to have the white colour for zero. There is no difference between the zero values of bins inside the shape and the bins that haven’t been filled around the shape.
Thanks, I couldn’t do this. I have positive and negative values to fill histogram and when I use setpallet I have the white colour for values between -0.01 to 0.01. cos.pdf (47.7 KB)