Is it a TTree you need to visualize that way ?
The is nothing to draw a table in a TCanvas.
You can draw an 2d histogram with the option TEXT…
Although if the tables you want to display are as small at the one you posted it should not be difficult to make a small macro drawing them…
Thanks for your answer.
I indeed just want to display several quantities retrieved from different sources (run number, efficiencies, lumi…).
I do agree that writing a small macro should not be complicated; I was asking just in case of something already exists (there are so many useful things in root!).
Many thanks for the tip, it was very useful and it worked nicely.
I have been facing a last problem: I had created one TPaveText per column but with the default, the text sizes are different for each column and when trying to change it with a SetTextSize in the script, pyroot seems to be frozen.
Searching in the forum, I found a statement according to which the size can not be changed. Is it really the case? I am a little bit surprised, as it is easily feasible by changing interactively the text attributes in the Canvas.
The all idea of TPaveText is to avoid dealing with text size and text positioning.
You define a box and put some text in. TPaveText does all the adjustments to make the texts fit inside the box. That’s all automatic.