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


阅读更多
博主设置当前文章不允许评论。

博主推荐

换一批

没有更多推荐了,返回首页