Adding text to the center of a TEllipse

Hi all,

I would like to generate an ellipse with text at its center.

I am able to generate an ellipse fine and all, curious to see if there is a way to place some text at its center, like if there is some option or function that can be used to do so.



ROOT Version: 6.22/06
Platform: MacOS Big Sur
Compiler: gcc

You know the centre, since you create the ellipse, so you can use TLatex and SetTextAlign(22):

  TLatex lat;
  lat.DrawLatex(xcentre,ycentre,"mytext");   // use your x and y coordinates