本文整理汇总了C++中TLatex::SetLineColor方法的典型用法代码示例。如果您正苦于以下问题:C++ TLatex::SetLineColor方法的具体用法?C++ TLatex::SetLineColor怎么用?C++ TLatex::SetLineColor使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TLatex
的用法示例。
在下文中一共展示了TLatex::SetLineColor方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: CR_checks
void CR_checks()
{
//=========Macro generated from canvas: c1/Example 2 pads (20,80)
//========= (Wed Sep 14 17:35:33 2016) by ROOT version6.02/08
TCanvas *c1 = new TCanvas("c1", "Example 2 pads (20,80)",585,62,800,830);
gStyle->SetOptStat(0);
c1->Range(0,0,1,1);
c1->SetFillColor(0);
c1->SetBorderMode(0);
c1->SetBorderSize(2);
c1->SetFrameBorderMode(0);
// ------------>Primitives in pad: pad1
TPad *pad1 = new TPad("pad1", "The pad 80% of the height",0,0.2,1,1);
pad1->Draw();
pad1->cd();
pad1->Range(7.676608,-64.34968,232.606,330.7036);
pad1->SetFillColor(0);
pad1->SetBorderMode(0);
pad1->SetBorderSize(2);
pad1->SetTopMargin(0.07772021);
pad1->SetBottomMargin(0.1628886);
pad1->SetFrameBorderMode(0);
pad1->SetFrameBorderMode(0);
TH1D *low_prj_co605 = new TH1D("low_prj_co605","",10,0,300);
low_prj_co605->SetBinContent(1,12.30688);
low_prj_co605->SetBinContent(2,219.0049);
low_prj_co605->SetBinContent(3,279.028);
low_prj_co605->SetBinContent(4,105.724);
low_prj_co605->SetBinContent(5,128.8624);
low_prj_co605->SetBinContent(6,85.86029);
low_prj_co605->SetBinContent(7,55.09309);
low_prj_co605->SetBinContent(8,21.26716);
low_prj_co605->SetBinContent(9,6.945112);
low_prj_co605->SetBinContent(10,1.835237);
low_prj_co605->SetBinError(1,0.66548);
low_prj_co605->SetBinError(2,2.807294);
low_prj_co605->SetBinError(3,3.168727);
low_prj_co605->SetBinError(4,1.950508);
low_prj_co605->SetBinError(5,2.153397);
low_prj_co605->SetBinError(6,1.75775);
low_prj_co605->SetBinError(7,1.408022);
low_prj_co605->SetBinError(8,0.8748139);
low_prj_co605->SetBinError(9,0.4999201);
low_prj_co605->SetBinError(10,0.2569845);
low_prj_co605->SetMinimum(0);
low_prj_co605->SetMaximum(300);
low_prj_co605->SetEntries(25453);
low_prj_co605->SetStats(0);
low_prj_co605->SetLineColor(30);
low_prj_co605->SetLineWidth(3);
low_prj_co605->GetXaxis()->SetTitle("cxS1sTot[0] [PE]");
low_prj_co605->GetXaxis()->SetRange(2,7);
low_prj_co605->GetXaxis()->SetLabelSize(1);
low_prj_co605->GetXaxis()->SetTitleOffset(10);
low_prj_co605->GetYaxis()->SetTitle("Events / 30 PE");
low_prj_co605->GetYaxis()->SetLabelFont(42);
low_prj_co605->GetYaxis()->SetLabelSize(0.035);
low_prj_co605->GetYaxis()->SetTitleSize(0.035);
low_prj_co605->GetYaxis()->SetTitleOffset(1.28);
low_prj_co605->GetYaxis()->SetTitleFont(42);
low_prj_co605->GetZaxis()->SetLabelFont(42);
low_prj_co605->GetZaxis()->SetLabelSize(0.035);
low_prj_co605->GetZaxis()->SetTitleSize(0.035);
low_prj_co605->GetZaxis()->SetTitleFont(42);
low_prj_co605->Draw("hist");
TH1D *low_prj_dm6 = new TH1D("low_prj_dm6","",10,0,300);
low_prj_dm6->SetBinContent(1,13);
low_prj_dm6->SetBinContent(2,218);
low_prj_dm6->SetBinContent(3,284);
low_prj_dm6->SetBinContent(4,104);
low_prj_dm6->SetBinContent(5,122);
low_prj_dm6->SetBinContent(6,92);
low_prj_dm6->SetBinContent(7,53);
low_prj_dm6->SetBinContent(8,18);
low_prj_dm6->SetBinContent(9,8);
low_prj_dm6->SetBinContent(10,5);
low_prj_dm6->SetBinError(1,3.605551);
low_prj_dm6->SetBinError(2,14.76482);
low_prj_dm6->SetBinError(3,16.8523);
low_prj_dm6->SetBinError(4,10.19804);
low_prj_dm6->SetBinError(5,11.04536);
low_prj_dm6->SetBinError(6,9.591663);
low_prj_dm6->SetBinError(7,7.28011);
low_prj_dm6->SetBinError(8,4.242641);
low_prj_dm6->SetBinError(9,2.828427);
low_prj_dm6->SetBinError(10,2.236068);
low_prj_dm6->SetEntries(917);
low_prj_dm6->SetStats(0);
low_prj_dm6->SetLineWidth(3);
low_prj_dm6->SetMarkerStyle(20);
low_prj_dm6->SetMarkerSize(1.7);
low_prj_dm6->GetXaxis()->SetTitle("cxS1sTot[0] [PE]");
low_prj_dm6->GetYaxis()->SetLabelFont(42);
low_prj_dm6->GetYaxis()->SetLabelSize(0.035);
low_prj_dm6->GetYaxis()->SetTitleSize(0.035);
low_prj_dm6->GetYaxis()->SetTitleFont(42);
low_prj_dm6->GetZaxis()->SetLabelFont(42);
//.........这里部分代码省略.........