Hello everyone,
The code
{
auto c56 = new TCanvas("c56","c56",600,400);
gStyle->SetOptStat(kFALSE);
auto h3box = new TH3F("h3box","Option BOX2",10,-2.,2.,10,-2.,2.,10,-0.5,2.);
Double_t x, y, z;
for (Int_t i=0;i<10000;i++) {
gRandom->Rannor(x, y);
z = abs(sin(x)/x + cos(y)*y);
h3box->Fill(x,y,z);
}
h3box->Draw("BOX2");
}
given here https://root.cern/doc/master/classTHistPainter.html#HP25 is supposed to produce an image like this
But when I run exactly the same code on my machine, the image I get is colorless like this below
It seems that all those options BOX1, 2, 3 will give the same colorless image.
I’m running Root 6.08/06, and the operation system is Debian Stretch with latest updates. I want to know if this is a problem with my system setup or a bug of Root.
Thx
Jiangqiao