Retrieve xlow, ylow, xup, yup for TPad

In this example

TPad * p1 = new TPad("p1", "p1", 0.0, 0.2, 1.0, 1.0);

how to retrieve xlow, ylow, xup, yup for p1?


Please read tips for efficient and successful posting and posting code

ROOT Version: Not Provided
Platform: Not Provided
Compiler: Not Provided


Hi,

try

TPad * p1 = new TPad("p1", "p1", 0.0, 0.2, 1.0, 1.0);
double x1, y1, x2, y2;
p1->GetPadPar(x1, y1, x2, y2);
printf("TPad coordinates:\n\txlow = %f\n\tylow = %f\n\txup = %f\n\tyup = %f\n", x1, y1, x2, y2);
1 Like

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