Tadeusz,
The "stats" box is only drawn for
-TH1 objects when TStyle::SetOptStat or TStyle::SetOptFit are set
-TGraph objects when TStyle::SetOptFit is set
The "stats" box is not drawn for TF1 objects
You can add your own annotations in a TH1, TGraph in two ways:
- create a TPaveText and draw it on the existing picture
- more interesting: Create a TPaveText and add it to the list
of objects to be automatically drawn when drawing a TH1, TGraph.
This has the additional advantage that the TPaveText (you may have
more than one) will be saved together with the TH1,TGraph on a file.
Example:
TPaveText *doc = new TPaveText(...);
doc->AddText("...");
h->GetListOfFunctions()->Add(doc); //where h is a TH1*
then, when doing:
h->Draw();
the TPaveText object will also be drawn.
Rene Brun