gStyle->SetOptStat(“ne”);
should work as expected,at least it does for me (root v 5.34.11 and above).
gStyle->SetOptStat(110);
shows as expected entries and mean
but you want:
gStyle->SetOptStat(11);
(see root.cern.ch/root/html534/TStyle … SetOptStat)
Otto is perfectly right. The histograms are created directly in the “compare6Quantities.C” macro and none of them is read (retrieved) from any existing ROOT file.
So my initial advice to try “gROOT->ForceStyle(kTRUE);” was completely wrong here.
As Otto points out, the problems are related to the order of lines -> first comes gROOT->SetStyle(“Plain”); and then gStyle->SetOptStat(11); and to the incorrect value used in gStyle->SetOptStat(…) -> was 110, should be 11 or “ne”.