# Adding text to the center of a TEllipse

**URL:** <https://root-forum.cern.ch/t/adding-text-to-the-center-of-a-tellipse/48747>\
**Category:** Newbie\
**Created:** [February 10, 2022, 2:45pm UTC](https://root-forum.cern.ch/t/adding-text-to-the-center-of-a-tellipse/48747 "2022-02-10T14:45:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fr4nk](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/fr4nk/32/24294_2.png) [@Fr4nk](https://root-forum.cern.ch/u/Fr4nk)\
**Post date:** [February 10, 2022, 2:45pm UTC](https://root-forum.cern.ch/t/adding-text-to-the-center-of-a-tellipse/48747/1 "2022-02-10T14:45:36Z")

</div>

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.

Thanks!

Frank

_ROOT Version:_ 6.22/06  
_Platform:_ MacOS Big Sur  
_Compiler:_ gcc

* * *

---

<div class="post-metadata">

**Author:** ![dastudillo](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/dastudillo/32/17280_2.png) [@dastudillo](https://root-forum.cern.ch/u/dastudillo)\
**Post date:** [February 10, 2022, 2:58pm UTC](https://root-forum.cern.ch/t/adding-text-to-the-center-of-a-tellipse/48747/2 "2022-02-10T14:58:19Z")

</div>

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

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

```

[https://root.cern/doc/master/classTAttText.html#ATTTEXT1](https://root.cern/doc/master/classTAttText.html#ATTTEXT1)
