I am evaluating the new version of root - 4.00/4 on win32gdk. I have a 2D histogram that has bin contents of non-empty cells negative. With the present version of root, TH2::Draw(“colz”) draws the empty bins with the color of the maximum bin contents. In version 3.10/2, the empty bins were “white” (e.g. background color)
Note: if the non-empty cells are positive, the empty cells are displayed as background color (e.g. white) - this is the desired behavior in both cases.
Because of rounding errors, it may happened that a cell’s color was
outside the palette even for a z value smaller than the maximum.
The bins with zero content are not painted only if the minimum of the
histogram isn’t negative.
Point 2) is what you refer to. If an histogram has negative entries, it means it has not been filled with positive weights only and therefore a bin containing 0 is not necessarily empty !
I am using win32gdk 4.00/4 from CVS today (3-Jun-04). The attached root file contains a 2D histogram, pXyTof. Read and display as follows:TFile *f = new TFile("colz.root");
gStyle->SetPalette(1,0);
pTofXy->Draw("colz");My question is: How do I change the color of the largest countour (199) from red to, “white” (or what ever the canvas’s color is - perhaps 19?)
Here are some curious things that seem not right…
(1) Around x=-13.7, y=9.4 there are some pixels drawn in colors that do not appear on the palette (this is the color I’d like to chage red to!)
(2) When you zoom in the y-axis and then unzoom, the z-axis unzooms as well (x-axis does not behave this way)