Dear experts,
I found an interesting behavior of TPaveText when used with jsroot. Consider the following toy example of filling a TPaveText:
TPaveText *pt = new TPaveText(0.05,0.05,.95,.95);
for(int i=0; i<3; i++){
pt->AddText(Form("Group %d", i));
((TText*)pt->GetListOfLines()->Last())->SetTextAlign(22);
for(int j = 0; j<2; j++){
pt->AddText(Form("Member %d", j));
((TText*)pt->GetListOfLines()->Last())->SetTextAlign(12);
}
pt->AddText("");
pt->AddLine();
((TLine*)pt->GetListOfLines()->Last())->SetLineWidth(3);
((TLine*)pt->GetListOfLines()->Last())->SetLineStyle(9);
}
The expected output of this code is the following:
However, when using the same code with jsroot, the output looks like this:
As it can be seen, there are two issues:
- The placement of the TLine does not follow the expected behavior of the AddLine() function
- The SetTextAlign() function does not work
I would appreciate any help for this problem!
Best,
Marcel