Hi rooters, I'm trying to move the title of the histogram and the stat box without using the mouse(I'm plotting several histogram with a loop and I cannot do it by hand) I tried the following: hist->Draw(); TPaveText *title = (TPaveText*)c1->GetPrimitive("title"); title->SetY2(newy2); title->SetX1(newx1); title->SetX2(newx2); title->SetY1(newy1); c1->Modified(); c1->Update(); but nothing happens. If I check the X1 etc values (using Int_t aa=title->GetX1();)right after setting them,they are what I want;but after c1->Update(); they are back to the original values. Is there a way to set the position of the title(and stats)before or after drawing it? thanks Angela
This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:43:43 MET