gStyle->SetOptStat(111110); doesn't turn on stats

Gents,
I’m runnignthe attached .C. I turn off the stats box with

gStyle->SetOptStat(kFALSE);

draw sone histos, and then want to turn the stats box on again so I do:

gStyle->SetOptStat(111110);

but subsequent histo has no stats box. What am I doind wrong
thanks
Ken
stats.C (3.56 KB)

There are unfortunatly missing files in your script, so I cannot execute it.
However, if you change style and your histogram has already been drawn with an existing style (attributes are marked in the object), you should force the current style to be used in teh histogram. Just before your second Draw, add the line as shown below

gStyle->SetOptStat(111110); husers5->UseCurrentStyle(0; husers5->Draw();c1->Print("histo5.ps(","ps"); c1.Clear();

Rene

Thanks Rene, that did it.
Ken