Plotting of TH2F with contz option

Hi,

how do I plot a 2D histogram with positive and negative values using the contz option without getting white areas (see attached image)? The white areas occur always at the transition from negative to positive values.

Cheers,

Gernot

(Using root 4.02/00 on OSX)

I do not see this effect. I tried:

   TF2 *fun2 = new TF2("fun2","(sin(x)/x)*(cos(y)*y)",-6,6,-6,6);
    gStyle->SetPalette(1);
   fun2->Draw("cont4z");

I get the attached picture. I am using the latest ROOT on linux (4.03/05)

Do you have a little example showing your problem ?


I attached an example.

Same problem on linux with version 4.02.00.

Your example works fine.

Gernot
c1.C (27.8 KB)

Use CONT4Z or COLZ.