Hello, according to the reference guide the coordinates used y TPaveText are NDC. Chapter 9 of the user’s guide states about NDC:
Now I’m trying to draw a TPaveText on a TCanvas where I’ve already drawn a histogram, and it seems that the above statement about NDC is not true. The coordinate system used by the TPaveText seems to be the histogram coordinate system, as it can be seen from the result of this script:
I do not find where it is stated in the doc that TPaveText has its coordinates in NDC by default.
The User’s Guide chapter 9 is here: root.cern.ch/download/doc/Graphics.html
Can you point me where it is wrong ?
TPaveText coordinates: bottom lines in: http://root.cern.ch/root/html/TPaveText.html#TPaveText:TPaveText@1
Chapter 9 states that (0, 0) in NDC corresponds to the bottom-left corner of the pad, which seems to be wrong if TPaveText really uses NDC as it emerges from my example. However, chapter 9 doesn’t state anything specific about TPaveText.
Thanks for your prompt answer.
Ah, that was not clear to me, thanks. So if I want to place a TPaveText always in the same position inside the canvas, regardless of the range of the histogram, I have to do the math and compute position and size w.r.t. the histogram parameters?