[cernRoot]how to deal with TPavetext->SetTextAngle()?

TPaveText *l1 = new TPaveText(0.9,0,1.1,.5);
l1->AddText("text");
l1->SetTextAngle(90.);
l1->Draw();

does not produce rotated text.

TPaveText::AddText returns a pointer to the TText object. Do:

TText *text = l1->AddText("text");
 text->SetTextAngle(90);
 text->SetTextAlign(22);
 l1->Draw();


你可能感兴趣的:(C++,cernRoot)