For me it works , “st” is defined. hsimple.root is the file generated by $ROOTSYS/tutorials/hsimple.C .
What is your histogram DeltaT ?
has it something special ?
The “stats” box is only generated when the canvas is effectively paint.
In your script, you should add the following line after your hpx->Draw call.
c1->Update();
I notice that in your hsimple.C file, you are using hfile->Write(); instead of hpx->Write(); . What is the difference? In my macro, I am opening the root file, then writing all histos using histoname->Write(); then I close the file using f->Close(); . Appart from this, I don’t see any differences between your macro and mine that could generate the problem. Am I missing something here?