TLegend and SetTextAlign(12)

Hi,

Is it possible to vertically align the label names in a TLegend without considering subscripts? Using SetTextAlign(12) does not work, since the alignment still uses the centre of the text+subscript.

Thanks and best regards,

Will

Hi,

To get around this problem, I am now appending “_{ }^{ }” to the name of each TLegend label. This forces the vertical alignment to behave as hoped.

Best regards,

Will

some improvements have been done in v5-34-11 (Oct 31, 2013):

TLegend:
Improve the spacing between lines. Due to the way the vertical text centring is done (bounding based) the spacing between lines may appeared irregular in some cases.