Problem applying my TStyle

Hello all,

I am having troubles applying my TStyle to a TH1F object (the same problem is with TGraph and TGraphErrors also). I mean I don’t know if I am applying mystyle correctly. If I am there is some problem ROOT uses it.

Please have a look and run the attached script. You will realize that after loading it only TitleFillColor and StatFillColor and PadBorders change. Titles and Labels are untouched. But if you re-load the script once again in the same ROOT session everything is changed properly. Is this a feature? I would expect it to be changed after one loading…

thank you
michal
test1.C (869 Bytes)

Replace the two lines
gROOT->ForceStyle();
gROOT->UseCurrentStyle();
by
h1->UseCurrentStyle();

Rene