In a 2D plot, the z count starts from 10^-2 (with the option ‘colz’).
When I start it from 1 using hist->SetMinimum(1), the color pattern changes which is obvious. How to conserve the same color pattern (of kRainbow=55)?
I mean is there anything I can change in the ‘Gradient Color Table’ I am using (kRainbow=55)?
Yes, when you draw a 2D histogram the palette is displayed according to the full dynamic of the histogram. One simple way for your case might be to create a copy of the original histogram in which you will set (with SetBinContent) all the bins having a content <=1 to 1.
Thanks @couet . I am directly reading/taking the 2D histograms from other root files (not by TGraph etc.), in my program. In such case, how can I set all the lower bins having content <=1 to 1?
Could you please give me an example of the solution you suggested using `SetBinContent’ here?