Align legend entry at baseline

Hi All!

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();

}


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

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