本文整理汇总了C++中TLegend::SetTextAngle方法的典型用法代码示例。如果您正苦于以下问题:C++ TLegend::SetTextAngle方法的具体用法?C++ TLegend::SetTextAngle怎么用?C++ TLegend::SetTextAngle使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TLegend
的用法示例。
在下文中一共展示了TLegend::SetTextAngle方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: makeNoEWSBLegend
TLegend* makeNoEWSBLegend(Double_t txtsz,Int_t tanBeta_){
txtsz = txtsz;
Double_t ypos_1 = 0.12;
Double_t ypos_2 = 0.22;
Double_t xpos_1 = 0.82;
Double_t xpos_2 = 0.92;
if(tanBeta_ == 40){
xpos_1 = 0.10;
xpos_2 = 0.20;
ypos_1 = 0.85;
ypos_2 = 0.95;
}
TLegend* legst = new TLegend(xpos_1,ypos_1,xpos_2,ypos_2);
legst->SetHeader("No EWSB");
legst->SetFillStyle(0);
legst->SetBorderSize(0);
legst->SetTextSize(0.03);
legst->SetTextAngle(30);
return legst;
}
示例2: makeStauLegend
TLegend* makeStauLegend(Double_t txtsz,Int_t tanBeta_){
Double_t ypos_1 = 0.78;
Double_t ypos_2 = 0.80;
Double_t xpos_1 = 0.16;
Double_t xpos_2 = 0.17;
if(tanBeta_ == 40){
xpos_1 = 0.14;
xpos_2 = 0.15;
ypos_1 = 0.76;
ypos_2 = 0.78;
}
TLegend* legst = new TLegend(xpos_1+0.025,ypos_1,xpos_2+0.025,ypos_2);
legst->SetHeader("#tilde{#tau} = LSP");
legst->SetFillStyle(0);
legst->SetBorderSize(0);
legst->SetTextSize(0.03);
legst->SetTextAngle(80);
return legst;
}
示例3: makeStauLegend
TLegend* makeStauLegend(Double_t txtsz,Int_t tanBeta_){
txtsz = txtsz;
Double_t ypos_1 = 0.78;
Double_t ypos_2 = 0.80;
Double_t xpos_1 = 0.17;
Double_t xpos_2 = 0.19;
if(tanBeta_ == 50){
xpos_1 = 0.17;
xpos_2 = 0.18;
ypos_1 = 0.76;
ypos_2 = 0.78;
}
TLegend* legst = new TLegend(xpos_1,ypos_1,xpos_2,ypos_2);
legst->SetHeader("#tilde{#tau} = LSP");
legst->SetFillStyle(0);
legst->SetBorderSize(0);
legst->SetTextSize(0.03);
legst->SetTextAngle(85);
return legst;
}