# Align legend entry at baseline

**URL:** <https://root-forum.cern.ch/t/align-legend-entry-at-baseline/16435>\
**Category:** ROOT\
**Created:** [July 24, 2013, 2:22pm UTC](https://root-forum.cern.ch/t/align-legend-entry-at-baseline/16435 "2013-07-24T14:22:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![SebastianSchmitt](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/s/58f4c7/32.png) [@SebastianSchmitt](https://root-forum.cern.ch/u/SebastianSchmitt)\
**Post date:** [July 24, 2013, 2:22pm UTC](https://root-forum.cern.ch/t/align-legend-entry-at-baseline/16435/1 "2013-07-24T14:22:19Z")

</div>

Hi All!

```auto
ta() {

    TLegend* leg = new TLegend(0.4,0.4,0.7,0.7);

    TH1* h = new TH1D("h","h",1,0,1);
    h->SetMarkerStyle(kFullDotLarge);

    leg->AddEntry(h, "p^{T}");
    leg->AddEntry(h, "p");
    leg->AddEntry(h, "p_{T}");

    leg->Draw();

}
```

 ![](https://root-forum.cern.ch/uploads/default/original/2X/5/5a1164fb15be1d8a5d92567004c011f9ed0764f4.png)  

Is it possible to align all three entries at the baseline of the “p”, i.e. regardless of the existance of a sub or superscript?

Thanks,

Sebastian

---

<div class="post-metadata">

**Author:** ![couet](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/couet/32/12037_2.png) [@couet](https://root-forum.cern.ch/u/couet)\
**Post date:** [July 25, 2013, 5:43am UTC](https://root-forum.cern.ch/t/align-legend-entry-at-baseline/16435/2 "2013-07-25T05:43:13Z")

</div>

> [@](#):
>
> Is it possible to align all three entries at the baseline of the “p”, i.e. regardless of the existance of a sub or superscript?

No… the vertical text alignment for these text is centered. In general, doing that, the texts may clash.
