Details
-
Bug
-
Status: Closed (View Workflow)
-
Low
-
Resolution: Clarified
-
6.16/00, 6.14/06
-
None
-
None
-
Several platforms (tested on SL6 and MacOS 10.13.6)
Description
The text rendered in TLatex (e.g. in a histogram title) has alignment problems for subscripts.
Below is an example to reproduce the issue that results in the output attached, where the "XX" subscript have different baselines:
TCanvas* c1 = new TCanvas("c1", "c1");
TH1D* h = new TH1D("h", ";#mu = A_
^
{YY};-2#Deltaln(L)", 100, 0, 1);h->Draw();
The behaviour changes depending on the string used, for example everything is correctly aligned if the title is simply "A_{XX}^{YY}
/ A_
{XX}^{YY}", so it looks like it depends on the presence of other math symbols in the string.The only workaround I found at the moment is to use "#scale[1]{#mu} = A_{XX}
^
{YY} / A_{XX}^{YY}" that gives the correctly aligned output.