Sean Kelly wrote: > > Hi Rooters > > I would like to have the the label (title) on a TGraph be right justified > and make the label bigger. Can someone tell me how this is done ? > (i.e. without using the mouse). > Hi Sean, Look at the following functions in TStyle: void SetTitleX(Float_t x=0) {fTitleX=x;} void SetTitleY(Float_t y=1) {fTitleY=y;} void SetTitleW(Float_t w=0) {fTitleW=w;} void SetTitleH(Float_t h=0) {fTitleH=h;} where x, y are in NDC coordinates [0,1] w,h are the width,heigth of the label in per cent of the vertical pad size. eg, You can do before executing your macros: gStyle->SetTitleX(0.5); gStyle->setTitleH(0.06); Rene Brun
This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:43:37 MET