The position of the histogram data window

I have code type:

void NameCode (...)
{
...
gStyle->SetOptFit(112);

Hist->Draw();
}

What I have:

What I want:

What do I need for change the position of the “Entries”?


Please read tips for efficient and successful posting and posting code

ROOT Version: 6.22/02
Platform: Not Provided
Compiler: Not Provided


Something like this:

   TPaveStats *ps1 = (TPaveStats *)Hist->GetListOfFunctions()->FindObject("stats");
   if (ps1) {
      ps1->SetX1NDC(0.65);
      ps1->SetY1NDC(0.72);
   }

(then adjust the values to what you need)

Example here: ROOT: tutorials/hist/transpad.C File Reference

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.