Setting the right dimensions of TPavetext


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


Hello :slight_smile:
I am trying to make a textbox using TPavetext. I am finding the difficulty to set the correct size of it. It is going out of canvas. I am using

TPaveText *pt = new TPaveText(.2,.89,.7,0.99);

Please suggest me the appropriate parameters.
Thank you

can you provide a small macro showing the problem ?

TPaveText *pt = new TPaveText(.05,0.08,.95,1.0);
pt->AddText(β€œ5.02TeV”);
pt->AddText(β€œPb+Pb 30-40%”);
pt->Draw();

What is your histogram range ? I cannot see on the plot

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