3D histogram plotted with the option BOX2 is colorless

Hello everyone,

The code

   auto c56 = new TCanvas("c56","c56",600,400);
   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);

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.



This was implemented in ROOT 6.10

thx for reply.

Is ROOT 6.10 available for download? The highest version I can find is the 6.09/02.

It should be fine too.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.