Re: [ROOT] TPad function GetPadPar;

From: jiangyong jia (jjia@rcf.rhic.bnl.gov)
Date: Fri Nov 10 2000 - 16:00:22 MET


Dear Brun,


On Fri, 10 Nov 2000, Rene Brun wrote:

> Hi Jiangyong,
> 
> I cannot reproduce this problem.
I mean when you call :
{
  c1 = new TCanvas("c1","c1",800,600);
  Double_t xlow,ylow,xup,yup;
  int x=2,y=2;
  c1->Divide(x,y);
  for(int a=1;a<=x*y;a++){
    c1->cd(a);
    gPad->GetPadPar(xlow,ylow,xup,yup);
    cout<<xlow<<" "<<ylow<<" "<<xup<<" "<<yup<<endl;
    gPad->SetPad(xlow,ylow*0.9,xup,yup*0.9);
  }
}
I expect GetPadPar return the dimension of Pad in NDC,
but it returns 0!!!!, at least for the version of Root I am using,
instead I have to use:
    xlow = gPad->GetXlowNDC();
    ylow = gPad->GetYlowNDC();
    xup  = xlow + gPad->GetWNDC();
    yup  = ylow + gPad->GetHNDC();
to get the dimension.
cheers,
Jiangyong
> 
> Rene Brun
> 
> jiangyong jia wrote:
> > 
> > Dear all,
> > I found out that seems
> > GetPadPar(double&xlow,double&ylow,double&xup,double&yup)
> > dosen't work, it returns 0,
> > the root version I use is:
> >  Version   2.23/12  21 February 2000
> > 
> > cheers,
> > Jiangyong
> > 
> > ************************************************
> >         jjia@rcf.rhic.bnl.gov
> >         Jiangyong Jia
> >         Department of Physics
> >         State University New York at Stony Brook
> >         Stony Brook, New York 11794-3800
> >         Tel.631-344-5455
> > *********************************************
> 



This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:37 MET