当前位置: 首页>>代码示例>>C++>>正文


C++ TStyle::SetLabelSize方法代码示例

本文整理汇总了C++中TStyle::SetLabelSize方法的典型用法代码示例。如果您正苦于以下问题:C++ TStyle::SetLabelSize方法的具体用法?C++ TStyle::SetLabelSize怎么用?C++ TStyle::SetLabelSize使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在TStyle的用法示例。


在下文中一共展示了TStyle::SetLabelSize方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: setRBellanStyle

void setRBellanStyle() {
  TStyle *theStyle = new TStyle("rbStyle", "Style for Bellan Thesis");
  theStyle->SetOptStat(0);
  theStyle->SetPadBorderMode(0);
  theStyle->SetCanvasBorderMode(0);
  theStyle->SetPadColor(0);
  theStyle->SetCanvasColor(0);
  theStyle->SetMarkerStyle(8);
  theStyle->SetMarkerSize(0.7);
  theStyle->SetPalette(1);
  
  theStyle->SetStatH(0.3);
  //   theStyle->SetTextFont(132);
  //   theStyle->SetTitleFont(132);
  theStyle->SetTitleBorderSize(1);
  //    theStyle->SetPalette(1);
  theStyle->SetOptStat(0);
  theStyle->SetFitFormat("4.4g");
  theStyle->SetStatY(0.99);
  theStyle->SetStatX(0.99);
  theStyle->SetTitleYOffset(1.6);
  theStyle->SetLabelSize(0.035, "XYZ");
  theStyle->SetPadGridX(true);
  theStyle->SetPadGridY(true);
  theStyle->SetFrameBorderMode(0);
  theStyle->SetTitleFillColor(0);
  theStyle->SetLegendBorderSize();
  
  // theStyle->SetCanvasDefH(600);
  // theStyle->SetCanvasDefW(400);
  
  //theStyle->SetOptLogy(); //aaa
  // theStyle->SetOptLogx();
  theStyle->cd();
}
开发者ID:rebecacern,项目名称:OldVUB,代码行数:35,代码来源:Style.C

示例2: hggPaperStyle

void hggPaperStyle()
{

    // Hgg Paper style for plots
    TStyle *hggStyle = new TStyle("hggStyle","Hgg Paper Style");

    //hggStyle->SetCanvasColor(0);
    //hggStyle->SetPadColor(0);
    hggStyle->SetPadTickX(0);
    hggStyle->SetPadTickY(0);

    hggStyle->SetFrameFillColor(0);
    hggStyle->SetStatColor(0);
    hggStyle->SetOptStat(0);
    hggStyle->SetTitleFillColor(0);
    hggStyle->SetCanvasBorderMode(0);
    hggStyle->SetPadBorderMode(0);
    hggStyle->SetFrameBorderMode(0);
    hggStyle->SetFrameBorderSize(1);
    hggStyle->SetPadColor(kWhite);
    hggStyle->SetCanvasColor(kWhite);

    hggStyle->SetCanvasDefH(600); //Height of canvas
    hggStyle->SetCanvasDefW(800); //Width of canvas
    hggStyle->SetCanvasDefX(0);   //POsition on screen
    hggStyle->SetCanvasDefY(0);

    hggStyle->SetPadLeftMargin(0.16);//0.16);
    hggStyle->SetPadRightMargin(0.1);//0.02);
    hggStyle->SetPadTopMargin(0.085);//0.02);
    hggStyle->SetPadBottomMargin(0.12);//0.02);

    // For hgg axis titles:
    hggStyle->SetTitleColor(1, "XYZ");
    hggStyle->SetTitleFont(42, "XYZ");
    hggStyle->SetTitleSize(0.05, "XYZ");
    hggStyle->SetTitleYOffset(1.5); // => 1.15 if exponents
    hggStyle->SetTitleXOffset(1.);//0.9);

    // For hgg axis labels:
    hggStyle->SetLabelColor(1, "XYZ");
    hggStyle->SetLabelFont(42, "XYZ");
    hggStyle->SetLabelOffset(0.007, "XYZ");
    hggStyle->SetLabelSize(0.045, "XYZ");

    // Legends
    hggStyle->SetLegendBorderSize(0);
    hggStyle->SetLegendFillColor(kWhite);
    hggStyle->SetLegendFont(42);

    hggStyle->SetFillColor(10);
    // Nothing for now
    hggStyle->SetTextFont(42);
    hggStyle->SetTextSize(0.03);

    hggStyle->SetOptTitle(0);
    hggStyle->SetOptStat(0);
    hggStyle->cd();
}
开发者ID:ldcorpe,项目名称:diphotons,代码行数:59,代码来源:hggPaperStyle.C

示例3: HPlusStyle

// TStyle used for HPlus Studies and AnalysisPack.
//********************************************************************//
void HPlusStyle(void) {

    TStyle *HplusStyle = new TStyle("HplusStyle", "HplusStyle");
    HplusStyle->SetCanvasBorderMode(0);
    HplusStyle->SetCanvasColor(kWhite);
    HplusStyle->SetPadBorderMode(0);
    HplusStyle->SetPadColor(kWhite);
    HplusStyle->SetTitleFillColor(kWhite);
    HplusStyle->SetGridColor(0);
    HplusStyle->SetFrameBorderMode(0);
    HplusStyle->SetFrameBorderSize(1);
    HplusStyle->SetFrameFillColor(0);
    HplusStyle->SetFrameFillStyle(0);
    HplusStyle->SetFrameLineColor(1);
    HplusStyle->SetFrameLineStyle(1);
    HplusStyle->SetFrameLineWidth(1);
    // HplusStyle->SetFillColor(kWhite);
    HplusStyle->SetOptTitle(0);
    HplusStyle->SetTitleFont(42, "XYZ");
    HplusStyle->SetTitleFontSize(0.05);
    HplusStyle->SetTitleSize(0.06, "XYZ");
    HplusStyle->SetTextFont(42);
    HplusStyle->SetTitleXOffset(0.9);
    HplusStyle->SetTitleYOffset(1.25);

    HplusStyle->SetLabelColor(1, "XYZ");
    HplusStyle->SetLabelFont(42, "XYZ");
    HplusStyle->SetLabelOffset(0.007, "XYZ");
    HplusStyle->SetLabelSize(0.05, "XYZ");
    HplusStyle->SetPadTickX(1);  // To get tick marks on the opposite side of the frame
    HplusStyle->SetPadTickY(1);  // To get tick marks on the opposite side of the frame
    HplusStyle->SetNdivisions(508,"XYZ");

    HplusStyle->SetPadTopMargin(0.05);
    HplusStyle->SetPadBottomMargin(0.12);
    HplusStyle->SetPadLeftMargin(0.16);
    HplusStyle->SetPadRightMargin(0.04);//0.02
    HplusStyle->SetCanvasDefH(1280); //Height of canvas
    HplusStyle->SetCanvasDefW(1024); //Width of canvas
    HplusStyle->SetCanvasDefX(0);   //POsition on screen
    HplusStyle->SetCanvasDefY(0);
    HplusStyle->SetPaintTextFormat("5.2f");
    // HplusStyle->SetPalette(1, 0); // Pretty palette
    HplusStyle->SetOptStat(0);
    /// Statistics Box
    HplusStyle->SetStatX(0.9);
    HplusStyle->SetStatY(0.9);
    // HplusStyle->SetStatW(0.19) // default
    // HplusStyle->SetStatH(0.1)  // default
    HplusStyle->SetStatW(0.15);
    HplusStyle->SetStatH(0.1);
    HplusStyle->cd();
} //eof: void HPlusStyle(void){
开发者ID:nsahoo,项目名称:cmssw-1,代码行数:55,代码来源:myTStyles.C

示例4: setStyle

void setStyle() {

  TStyle *setStyle = new TStyle("setStyle","Style for GCT Analyzer");

  // Stuff from plain style
  setStyle->SetCanvasColor(kWhite);
  setStyle->SetFrameBorderMode(0);
  setStyle->SetCanvasBorderMode(0);
  setStyle->SetFrameFillColor(0);
  setStyle->SetPadBorderMode(0);
  setStyle->SetPadColor(kWhite); 

  setStyle->SetOptStat(0);
  setStyle->SetOptTitle(0);
  setStyle->SetOptFit(0);
  setStyle->SetOptDate(0);

  // Labels and borders
  
  setStyle->SetLabelSize(0.055,"x");
  setStyle->SetLabelSize(0.06,"y");
  setStyle->SetLabelOffset(0.00,"x");
  setStyle->SetLabelOffset(0.00,"y");
  setStyle->SetTitleOffset(0.05,"x");
  setStyle->SetTitleOffset(0.50,"y");
  //setStyle->SetLabelFont(22,"x");
  //setStyle->SetLabelFont(22,"y");
  //setStyle->SetErrorX(0.0000);
  //setStyle->SetTickLength(0.05,"x");
  //setStyle->SetTickLength(0.05,"y");
  //setStyle->SetLineWidth(0.8);
  //setStyle->SetPadTickX(1);
  //setStyle->SetPadTickY(1);
  setStyle->SetPadLeftMargin(0.15);
  setStyle->SetPadTopMargin(0.077);
  setStyle->SetPadBottomMargin(0.123);
  
  setStyle->cd();
}
开发者ID:Andrej-CMS,项目名称:cmssw,代码行数:39,代码来源:gctAnalyzerMergePlotter2.C

示例5: setHLTStyle

/////////
// the Style Section
/////////
void setHLTStyle() {
  setTDRStyle();
  //  TStyle *hltStyle = new TStyle(*tdrStyle);
  TStyle *hltStyle  = new TStyle("hltStyle","My HLT Styles");
  gStyle->Copy(*hltStyle);

  hltStyle->SetCanvasColor(-1);

  hltStyle->SetCanvasDefH(600);
  hltStyle->SetCanvasDefW(600);
  hltStyle->SetPadColor(-1);  
  hltStyle->SetPadGridX(false);
  hltStyle->SetPadGridY(false);
  hltStyle->SetGridWidth(0.25);
  
  hltStyle->SetFrameFillColor(-1); // Transparent

  hltStyle->SetHistFillColor(-1); // Transparent
  hltStyle->SetHistFillStyle(0);  // None
  hltStyle->SetHistLineWidth(3);

  hltStyle->SetPadTopMargin(0.08);
  hltStyle->SetPadBottomMargin(0.12);
  hltStyle->SetPadLeftMargin(0.15);
  hltStyle->SetPadRightMargin(0.04);

  hltStyle->SetTitleSize(0.05);
  hltStyle->SetTitleFillColor(-1); // Transparent
  hltStyle->SetTitleH(0.05); // Set the height of the title box
  hltStyle->SetTitleW(0.); // Set the width of the title box

  hltStyle->SetTitleSize(0.04, "XYZ");     
  hltStyle->SetTitleOffset(1.2, "X"); // Another way to set the Offset
  hltStyle->SetTitleOffset(1.8, "Y"); // Another way to set the Offset

  hltStyle->SetLabelSize(0.035, "XYZ");

  hltStyle->SetPalette(1,0);
  hltStyle->SetFillColor(0);    // White
  hltStyle->SetFillStyle(4000); // Transparent

  hltStyle->SetStatStyle(0);
  hltStyle->SetTitleStyle(0);
  hltStyle->SetCanvasBorderSize(0);
  hltStyle->SetFrameBorderSize(0);
  hltStyle->SetLegendBorderSize(0);
  hltStyle->SetStatBorderSize(0);
  hltStyle->SetTitleBorderSize(0);

  hltStyle->cd();
}
开发者ID:ASvyatkovskiy,项目名称:SegmentFits,代码行数:54,代码来源:adamStyles.C

示例6: LAWStyle

// Lauri's Style (LAuri Wendland)
//********************************************************************//
void LAWStyle() {
    TStyle *LAWStyle = new TStyle("LAWStyle", "Neat style");
    LAWStyle->SetCanvasBorderMode(0);
    LAWStyle->SetCanvasColor(kWhite);
    LAWStyle->SetPadBorderMode(0);
    LAWStyle->SetPadColor(kWhite);
    LAWStyle->SetTitleFillColor(kWhite);
    LAWStyle->SetGridColor(0);
    LAWStyle->SetFrameBorderMode(0);
    LAWStyle->SetFrameBorderSize(1);
    LAWStyle->SetFrameFillColor(0);
    LAWStyle->SetFrameFillStyle(0);
    LAWStyle->SetFrameLineColor(1);
    LAWStyle->SetFrameLineStyle(1);
    LAWStyle->SetFrameLineWidth(1);
    LAWStyle->SetFillColor(kWhite);
    LAWStyle->SetFillColor(kWhite);
    LAWStyle->SetOptTitle(0);
    LAWStyle->SetTitleFont(42, "XYZ");
    LAWStyle->SetTitleFontSize(0.05);
    LAWStyle->SetTitleSize(0.06, "XYZ");
    LAWStyle->SetTextFont(42);
    LAWStyle->SetTitleXOffset(0.9);
    LAWStyle->SetTitleYOffset(1.25);

    LAWStyle->SetLabelColor(1, "XYZ");
    LAWStyle->SetLabelFont(42, "XYZ");
    LAWStyle->SetLabelOffset(0.007, "XYZ");
    LAWStyle->SetLabelSize(0.05, "XYZ");
    LAWStyle->SetPadTickX(1);  // To get tick marks on the opposite side of the frame
    LAWStyle->SetPadTickY(1);  // To get tick marks on the opposite side of the frame
    LAWStyle->SetNdivisions(508,"XYZ");

    LAWStyle->SetPadTopMargin(0.05);
    LAWStyle->SetPadBottomMargin(0.12);
    LAWStyle->SetPadLeftMargin(0.16);
    LAWStyle->SetPadRightMargin(0.04);//0.02
    LAWStyle->SetCanvasDefH(600); //Height of canvas
    LAWStyle->SetCanvasDefW(600); //Width of canvas
    LAWStyle->SetCanvasDefX(0);   //POsition on screen
    LAWStyle->SetCanvasDefY(0);
    LAWStyle->SetOptTitle(0);
    LAWStyle->SetOptStat(0);
    LAWStyle->cd();
} //end of: void LAWStyle(){
开发者ID:nsahoo,项目名称:cmssw-1,代码行数:47,代码来源:myTStyles.C

示例7: setDefaultStyle

void setDefaultStyle()
{
  TStyle *defaultStyle = new TStyle("defaultStyle","Default Style");
  defaultStyle->SetOptStat(0000);
  defaultStyle->SetOptFit(000); 
  defaultStyle->SetPalette(1);
  /////// pad ////////////
  defaultStyle->SetPadBorderMode(1);
  defaultStyle->SetPadBorderSize(1);
  defaultStyle->SetPadColor(0);
  defaultStyle->SetPadTopMargin(0.05);
  defaultStyle->SetPadBottomMargin(0.13);
  defaultStyle->SetPadLeftMargin(0.14);
  defaultStyle->SetPadRightMargin(0.02);
  /////// canvas /////////
  defaultStyle->SetCanvasBorderMode(0);
  defaultStyle->SetCanvasColor(0);
  defaultStyle->SetCanvasDefH(600);
  defaultStyle->SetCanvasDefW(600);
  /////// frame //////////
  defaultStyle->SetFrameBorderMode(0);
  defaultStyle->SetFrameBorderSize(1);
  defaultStyle->SetFrameFillColor(0); 
  defaultStyle->SetFrameLineColor(1);
  /////// label //////////
  defaultStyle->SetLabelOffset(0.005,"XY");
  defaultStyle->SetLabelSize(0.05,"XY");
  defaultStyle->SetLabelFont(42,"XY");
  /////// title //////////
  defaultStyle->SetTitleOffset(1.2,"X");
  defaultStyle->SetTitleSize(0.05,"X");
  defaultStyle->SetTitleOffset(1.4,"Y");
  defaultStyle->SetTitleSize(0.05,"Y");
  defaultStyle->SetTitleFont(42, "XYZ");
  /////// various ////////
  defaultStyle->SetLegendBorderSize(0);
  
  
  defaultStyle->cd();
}
开发者ID:aashaqshah,项目名称:cmssw-1,代码行数:40,代码来源:setDefaultStyle.C

示例8: SetStyle

void SetStyle()
{
  TStyle *MYStyle = new TStyle("Style","Style");
  gStyle = MYStyle;

  // Canvas
  MYStyle->SetCanvasColor     (0);
  MYStyle->SetCanvasBorderSize(10);
  MYStyle->SetCanvasBorderMode(0);
  MYStyle->SetCanvasDefH      (700);
  MYStyle->SetCanvasDefW      (700);
  MYStyle->SetCanvasDefX      (100);
  MYStyle->SetCanvasDefY      (100);

  // Pads
  MYStyle->SetPadColor       (0);
  MYStyle->SetPadBorderSize  (10);
  MYStyle->SetPadBorderMode  (0);
  MYStyle->SetPadBottomMargin(0.13);
  MYStyle->SetPadTopMargin   (0.08);
  MYStyle->SetPadLeftMargin  (0.15);
  MYStyle->SetPadRightMargin (0.05);
  MYStyle->SetPadGridX       (0);
  MYStyle->SetPadGridY       (0);
  MYStyle->SetPadTickX       (0);
  MYStyle->SetPadTickY       (0);

  // Frames
  MYStyle->SetFrameFillStyle ( 0);
  MYStyle->SetFrameFillColor ( 0);
  MYStyle->SetFrameLineColor ( 1);
  MYStyle->SetFrameLineStyle ( 0);
  MYStyle->SetFrameLineWidth ( 1);
  MYStyle->SetFrameBorderSize(10);
  MYStyle->SetFrameBorderMode( 0);

  // Histograms
  MYStyle->SetHistFillColor(2);
//   MYStyle->SetHistFillStyle(0);
  MYStyle->SetHistLineColor(1);
  MYStyle->SetHistLineStyle(0);
  MYStyle->SetHistLineWidth(2);
  MYStyle->SetNdivisions(505);

  // Functions
  MYStyle->SetFuncColor(1);
  MYStyle->SetFuncStyle(0);
  MYStyle->SetFuncWidth(2);

  // Various
  MYStyle->SetMarkerStyle(20);
  MYStyle->SetMarkerColor(kBlack);
  MYStyle->SetMarkerSize (1.2);

  MYStyle->SetTitleSize  (0.055,"X");
  MYStyle->SetTitleOffset(1.050,"X");
  MYStyle->SetLabelOffset(0.005,"X");
  MYStyle->SetLabelSize  (0.045,"X");
  MYStyle->SetLabelFont  (42   ,"X");

  MYStyle->SetStripDecimals(kFALSE);

  MYStyle->SetTitleSize  (0.055,"Y");
  MYStyle->SetTitleOffset(1.400,"Y");
  MYStyle->SetLabelOffset(0.010,"Y");
  MYStyle->SetLabelSize  (0.045,"Y");
  MYStyle->SetLabelFont  (42   ,"Y");

  MYStyle->SetTextSize   (0.055);
  MYStyle->SetTextFont   (42);

  MYStyle->SetStatFont   (42);
  MYStyle->SetTitleFont  (42);
  MYStyle->SetTitleFont  (42,"X");
  MYStyle->SetTitleFont  (42,"Y");

  MYStyle->SetOptStat    (0);

  MYStyle->SetPalette    (1);
  return;
}
开发者ID:gitytakahas,项目名称:YutaMemo,代码行数:81,代码来源:MyStyle.C

示例9: setTDRStyle

void setTDRStyle() {

  TStyle *tdrStyle = new TStyle("tdrStyle","Style for P-DR");

  gROOT->SetStyle("Plain");
  gROOT->ForceStyle();

  tdrStyle->SetFrameBorderMode(0);
  tdrStyle->SetCanvasBorderMode(0);
  tdrStyle->SetPadBorderMode(0);
  tdrStyle->SetPadBorderMode(0);

  //	tdrStyle->SetFrameColor(0);
  tdrStyle->SetPadColor(0);
  tdrStyle->SetCanvasColor(0);
  tdrStyle->SetStatColor(0);
  tdrStyle->SetFillColor(0);

  tdrStyle->SetPaperSize(20,26);
  //	tdrStyle->SetPadTopMargin(0.08);
  //	tdrStyle->SetPadBottomMargin(0.14);
  tdrStyle->SetPadRightMargin(0.04);
  tdrStyle->SetPadLeftMargin(0.05);
  //	tdrStyle->SetCanvasDefH(800);
  //	tdrStyle->SetCanvasDefW(800);
  //	tdrStyle->SetPadGridX(1);
  //	tdrStyle->SetPadGridY(1);
  tdrStyle->SetPadTickX(1);
  tdrStyle->SetPadTickY(1);

  tdrStyle->SetTextFont(42); //132
  tdrStyle->SetTextSize(0.09);
  tdrStyle->SetLabelFont(42,"xyz");
  tdrStyle->SetTitleFont(42,"xyz");
  tdrStyle->SetLabelSize(0.045,"xyz"); //0.035
  tdrStyle->SetTitleSize(0.045,"xyz");
  tdrStyle->SetTitleOffset(1.5,"y");
    
  tdrStyle->SetTitleX(0.16);
  tdrStyle->SetTitleY(0.93);
  tdrStyle->SetTitleColor(1);
  tdrStyle->SetTitleTextColor(1);
  tdrStyle->SetTitleFillColor(0);
  tdrStyle->SetTitleBorderSize(1);
  tdrStyle->SetTitleFontSize(0.04);
  //	tdrStyle->SetPadTopMargin(0.05);
  //	tdrStyle->SetPadBottomMargin(0.13);
  //	tdrStyle->SetPadLeftMargin(0.14);
  //	tdrStyle->SetPadRightMargin(0.02);

  // use bold lines and markers
  tdrStyle->SetMarkerStyle(8);
  tdrStyle->SetHistLineWidth(3);
  tdrStyle->SetLineWidth(1);
  
  tdrStyle->SetOptTitle(kFALSE);
  tdrStyle->SetOptStat(0);

  tdrStyle->cd();

}
开发者ID:afiqaize,项目名称:analysesWorks,代码行数:61,代码来源:effKolm01_2012Alpha.cpp

示例10: Style_Toby_2

void Style_Toby_2()
{
   // Add the saved style to the current ROOT session.

   delete gROOT->GetStyle("Toby_2");

   TStyle *tmpStyle = new TStyle("Toby_2", "Style for posters and talks");
   tmpStyle->SetNdivisions(510, "x");
   tmpStyle->SetNdivisions(510, "y");
   tmpStyle->SetNdivisions(510, "z");
   tmpStyle->SetAxisColor(1, "x");
   tmpStyle->SetAxisColor(1, "y");
   tmpStyle->SetAxisColor(1, "z");
   tmpStyle->SetLabelColor(1, "x");
   tmpStyle->SetLabelColor(1, "y");
   tmpStyle->SetLabelColor(1, "z");
   tmpStyle->SetLabelFont(42, "x");
   tmpStyle->SetLabelFont(42, "y");
   tmpStyle->SetLabelFont(42, "z");
   tmpStyle->SetLabelOffset(0.005, "x");
   tmpStyle->SetLabelOffset(0.005, "y");
   tmpStyle->SetLabelOffset(0.005, "z");
   tmpStyle->SetLabelSize(0.035, "x");
   tmpStyle->SetLabelSize(0.035, "y");
   tmpStyle->SetLabelSize(0.035, "z");
   tmpStyle->SetTickLength(0.03, "x");
   tmpStyle->SetTickLength(0.03, "y");
   tmpStyle->SetTickLength(0.03, "z");
   tmpStyle->SetTitleOffset(1, "x");
   tmpStyle->SetTitleOffset(1, "y");
   tmpStyle->SetTitleOffset(1, "z");
   tmpStyle->SetTitleSize(0.035, "x");
   tmpStyle->SetTitleSize(0.035, "y");
   tmpStyle->SetTitleSize(0.035, "z");
   tmpStyle->SetTitleColor(1, "x");
   tmpStyle->SetTitleColor(1, "y");
   tmpStyle->SetTitleColor(1, "z");
   tmpStyle->SetTitleFont(42, "x");
   tmpStyle->SetTitleFont(42, "y");
   tmpStyle->SetTitleFont(42, "z");
   tmpStyle->SetBarWidth(1);
   tmpStyle->SetBarOffset(0);
   tmpStyle->SetDrawBorder(0);
   tmpStyle->SetOptLogx(0);
   tmpStyle->SetOptLogy(0);
   tmpStyle->SetOptLogz(0);
   tmpStyle->SetOptDate(0);
   tmpStyle->SetOptStat(111);
   tmpStyle->SetOptTitle(kTRUE);
   tmpStyle->SetOptFit(0);
   tmpStyle->SetNumberContours(20);
   tmpStyle->GetAttDate()->SetTextFont(62);
   tmpStyle->GetAttDate()->SetTextSize(0.025);
   tmpStyle->GetAttDate()->SetTextAngle(0);
   tmpStyle->GetAttDate()->SetTextAlign(11);
   tmpStyle->GetAttDate()->SetTextColor(1);
   tmpStyle->SetDateX(0.01);
   tmpStyle->SetDateY(0.01);
   tmpStyle->SetEndErrorSize(2);
   tmpStyle->SetErrorX(0.5);
   tmpStyle->SetFuncColor(2);
   tmpStyle->SetFuncStyle(1);
   tmpStyle->SetFuncWidth(2);
   tmpStyle->SetGridColor(0);
   tmpStyle->SetGridStyle(3);
   tmpStyle->SetGridWidth(1);
   tmpStyle->SetLegendBorderSize(1);
   tmpStyle->SetLegendFillColor(0);
   tmpStyle->SetLegendFont(42);
   tmpStyle->SetHatchesLineWidth(1);
   tmpStyle->SetHatchesSpacing(1);
   tmpStyle->SetFrameFillColor(0);
   tmpStyle->SetFrameLineColor(1);
   tmpStyle->SetFrameFillStyle(1001);
   tmpStyle->SetFrameLineStyle(1);
   tmpStyle->SetFrameLineWidth(1);
   tmpStyle->SetFrameBorderSize(1);
   tmpStyle->SetFrameBorderMode(0);
   tmpStyle->SetHistFillColor(0);
   tmpStyle->SetHistLineColor(602);
   tmpStyle->SetHistFillStyle(1001);
   tmpStyle->SetHistLineStyle(1);
   tmpStyle->SetHistLineWidth(1);
   tmpStyle->SetHistMinimumZero(kFALSE);
   tmpStyle->SetCanvasPreferGL(kFALSE);
   tmpStyle->SetCanvasColor(0);
   tmpStyle->SetCanvasBorderSize(2);
   tmpStyle->SetCanvasBorderMode(0);
   tmpStyle->SetCanvasDefH(500);
   tmpStyle->SetCanvasDefW(700);
   tmpStyle->SetCanvasDefX(10);
   tmpStyle->SetCanvasDefY(10);
   tmpStyle->SetPadColor(0);
   tmpStyle->SetPadBorderSize(2);
   tmpStyle->SetPadBorderMode(0);
   tmpStyle->SetPadBottomMargin(0.1);
   tmpStyle->SetPadTopMargin(0.1);
   tmpStyle->SetPadLeftMargin(0.1);
   tmpStyle->SetPadRightMargin(0.1);
   tmpStyle->SetPadGridX(kFALSE);
//.........这里部分代码省略.........
开发者ID:tking53,项目名称:root-macros,代码行数:101,代码来源:Style_Toby_2.C

示例11: scan_comp_engine

void scan_comp_engine( TString engine1_file, TString engine_file) {
  engine *myengine1 = new engine(engine1_file,0);
  //  TString engine_file="paw/hms_dc_52949.root";
  engine *myengine = new engine(engine_file,0);
  Long64_t nent_engine1 = myengine1->fChain->GetEntriesFast();
  Long64_t nent_engine = myengine->fChain->GetEntriesFast();
  cout << " engine1 entries = " << nent_engine1 << " engine entries = " << nent_engine  << endl;
  Long64_t nb_engine1 = 0,nb_engine = 0;
  //
  TH1F *hntr_engine1 = new TH1F("hntr_engine1","; Ntracks; Counts",50,0,50);
  TH1F *hntr_eng = new TH1F("hntr_eng","; Ntracks; Counts",50,0,50);
  TH2F *hntr_2d = new TH2F("hntr_2d","; ENGINE1 Ntracks ; ENGINE Ntracks",40,0,40,40,0,40);
  TH1F *hntr_diff = new TH1F("hntr_diff","; Ntracks; Counts",50,0,50);
  TH1F *hxpfp_eng[3],*hxpfp_engine1[3],*hxpfp_diff[3],*hxpfp_sub[3];
  TH1F *hypfp_eng[3],*hypfp_engine1[3],*hypfp_diff[3],*hypfp_sub[3];
  TH1F *hyfp_eng[3],*hyfp_engine1[3],*hyfp_diff[3],*hyfp_sub[3];
  TH1F *hxfp_eng[3],*hxfp_engine1[3],*hxfp_diff[3],*hxfp_sub[3];
  //
  Int_t i;
   for (i=0 ; i<3 ;i++) {
  hxpfp_eng[i] = new TH1F(Form("hxpfp_eng%d",i),"; Xpfp (mr); Counts",100,-100.,100.);
  hxpfp_engine1[i] = new TH1F(Form("hxpfp_engine1%d",i),"; Xpfp (mr); Counts",100,-100.,100.);
  hxpfp_diff[i] = new TH1F(Form("hxpfp_diff%d",i),"Difference; Xpfp (mr); Counts",100,-100.,100.);
  
  hypfp_eng[i] = new TH1F(Form("hypfp_eng%d",i),"; Ypfp (mr); Counts",100,-50.,50.);
  hypfp_engine1[i] = new TH1F(Form("hypfp_engine1%d",i),"; Ypfp (mr); Counts",100,-50.,50.);
  hypfp_diff[i] = new TH1F(Form("hypfp_diff%d",i),"Difference; Ypfp (mr); Counts",100,-50.,50.);
  
  hxfp_eng[i] = new TH1F(Form("hxfp_eng%d",i),"; Xfp (cm); Counts",100,-50,50);
  hxfp_engine1[i] = new TH1F(Form("hxfp_engine1%d",i),"; Xfp (cm); Counts",100,-50,50);
  hxfp_diff[i] = new TH1F(Form("hxfp_diff%d",i),"Difference; Xfp (cm); Counts",100,-50,50);
  
  hyfp_eng[i] = new TH1F(Form("hyfp_eng%d",i),"; Yfp (cm); Counts",60,-30,30);
  hyfp_engine1[i] = new TH1F(Form("hyfp_engine1%d",i),"; Yfp (cm); Counts",60,-30,30);
  hyfp_diff[i] = new TH1F(Form("hyfp_diff%d",i),"Difference; Yfp (cm); Counts",60,-30,30);
  
  hyfp_sub[i] = new TH1F(Form("hyfp_sub%d",i),"; Yfp (ENGINE1-ENGINE); Counts",60,-.5,.5);
  hxfp_sub[i] = new TH1F(Form("hxfp_sub%d",i),"; Xfp (ENGINE1-ENGINE); Counts",100,-.5,.5);
  hxpfp_sub[i] = new TH1F(Form("hxpfp_sub%d",i),"; Xpfp (ENGINE1-ENGINE); Counts",100,-.2,.2);
  hypfp_sub[i] = new TH1F(Form("hypfp_sub%d",i),"; Ypfp  (ENGINE1-ENGINE); Counts",100,-.2,.2);
   }//
  //
  Int_t counter=0;
  for (Long64_t ni=0 ; ni<nent_engine1 ;ni++) {
      nb_engine1 = myengine1->fChain->GetEntry(ni);
      nb_engine = myengine->fChain->GetEntry(ni);
      hntr_engine1->Fill(myengine1->dc_ntr);
      hntr_eng->Fill(myengine->dc_ntr);
      if ((myengine1->dc_ntr) != (myengine->dc_ntr) )hntr_2d->Fill(myengine1->dc_ntr,myengine->dc_ntr);
      if ( myengine1->dc_ntr==myengine->dc_ntr &&myengine1->dc_ntr<=3 ) {
     for (i=0 ; i<myengine->dc_ntr ;i++) {
     hxfp_engine1[i]->Fill(myengine1->dc_xfp[i]);
      hyfp_engine1[i]->Fill(myengine1->dc_yfp[i]);
      hxpfp_engine1[i]->Fill(myengine1->dc_xpfp[i]*1000);
      hypfp_engine1[i]->Fill(myengine1->dc_ypfp[i]*1000);
      hxfp_eng[i]->Fill(myengine->dc_xfp[i]);
      hyfp_eng[i]->Fill(myengine->dc_yfp[i]);
      hxpfp_eng[i]->Fill(myengine->dc_xpfp[i]*1000);
      hypfp_eng[i]->Fill(myengine->dc_ypfp[i]*1000);
          if ( TMath::Abs((myengine1->dc_yfp[i]-myengine->dc_yfp[i])) != 0.0 || (myengine1->dc_xfp[i]-myengine->dc_xfp[i]) != 0.0
|| (myengine1->dc_xpfp[i]-myengine->dc_xpfp[i]) != 0.0 || (myengine1->dc_ypfp[i]-myengine->dc_ypfp[i]) != 0.0 ) {
	hyfp_sub[i]->Fill((myengine1->dc_yfp[i]-myengine->dc_yfp[i]));
	hxfp_sub[i]->Fill((myengine1->dc_xfp[i]-myengine->dc_xfp[i]));
	hypfp_sub[i]->Fill((myengine1->dc_ypfp[i]-myengine->dc_ypfp[i]));
        hxpfp_sub[i]->Fill((myengine1->dc_xpfp[i]-myengine->dc_xpfp[i]));
          }
      }
      }
      if ( myengine->dc_ntr == 1 &&  myengine1->dc_ntr == 1 && -1==1) {
      cout  << " Counter = "<< counter++ << endl;
      myengine1->PrintTrack(ni);
      myengine->PrintTrack(ni);
      }
  }
  cout << " Engine1 File= " << engine1_file << endl;
  cout << " Engine File= " << engine_file << endl;
  TStyle *MyStyle = new TStyle("MyStyle"," My Style");
 MyStyle->SetOptStat(1000000);
 MyStyle->SetTitleOffset(1.,"Y");
 MyStyle->SetTitleOffset(.7,"X");
 MyStyle->SetLabelSize(0.04,"XY");
 MyStyle->SetTitleSize(0.06,"XY");
 MyStyle->SetPadLeftMargin(0.12);
 MyStyle->SetStatFontSize(0.2);
 MyStyle->SetTitleFontSize(0.1);
 gROOT->SetStyle("MyStyle");
 //
  TCanvas *cplot2[3];
  for (i=0 ; i<3 ;i++) {
  cplot2[i] = new TCanvas(Form("cplot2_%d",i),Form(" Focal Plane Positions ( %d track)  ",i+1),800,800);
 cplot2[i]->Divide(2,3);
 cplot2[i]->cd(1);
 hxfp_engine1[i]->Draw();
 hxfp_eng[i]->Draw("same");
 hxfp_eng[i]->SetLineColor(2);
 cplot2[i]->cd(3);
 hxfp_diff[i]->Add(hxfp_engine1[i],hxfp_eng[i],-1);
 hxfp_diff[i]->Draw();
 cplot2[i]->cd(5);
 hxfp_sub[i]->Draw();
//.........这里部分代码省略.........
开发者ID:JLTaylor,项目名称:hcana_replay,代码行数:101,代码来源:scan_comp_engine.C

示例12: sPhenixStyle

TStyle* sPhenixStyle() 
{
  TStyle *sphenixStyle = new TStyle("sPHENIX","sPHENIX style");

  // use plain black on white colors
  Int_t icol=0; // WHITE
  sphenixStyle->SetFrameBorderMode(icol);
  sphenixStyle->SetFrameFillColor(icol);
  sphenixStyle->SetCanvasBorderMode(icol);
  sphenixStyle->SetCanvasColor(icol);
  sphenixStyle->SetPadBorderMode(icol);
  sphenixStyle->SetPadColor(icol);
  sphenixStyle->SetStatColor(icol);
  //sphenixStyle->SetFillColor(icol); // don't use: white fill color for *all* objects

  // set the paper & margin sizes
  sphenixStyle->SetPaperSize(20,26);

  // set margin sizes
  sphenixStyle->SetPadTopMargin(0.05);
  sphenixStyle->SetPadRightMargin(0.05);
  sphenixStyle->SetPadBottomMargin(0.16);
  sphenixStyle->SetPadLeftMargin(0.16);

  // set title offsets (for axis label)
  sphenixStyle->SetTitleXOffset(1.4);
  sphenixStyle->SetTitleYOffset(1.4);

  // use large fonts
  //Int_t font=72; // Helvetica italics
  Int_t font=42; // Helvetica
  Double_t tsize=0.05;
  sphenixStyle->SetTextFont(font);

  sphenixStyle->SetTextSize(tsize);
  sphenixStyle->SetLabelFont(font,"x");
  sphenixStyle->SetTitleFont(font,"x");
  sphenixStyle->SetLabelFont(font,"y");
  sphenixStyle->SetTitleFont(font,"y");
  sphenixStyle->SetLabelFont(font,"z");
  sphenixStyle->SetTitleFont(font,"z");
  
  sphenixStyle->SetLabelSize(tsize,"x");
  sphenixStyle->SetTitleSize(tsize,"x");
  sphenixStyle->SetLabelSize(tsize,"y");
  sphenixStyle->SetTitleSize(tsize,"y");
  sphenixStyle->SetLabelSize(tsize,"z");
  sphenixStyle->SetTitleSize(tsize,"z");

  // use bold lines and markers
  sphenixStyle->SetMarkerStyle(20);
  sphenixStyle->SetMarkerSize(1.2);
  sphenixStyle->SetHistLineWidth(2.);
  sphenixStyle->SetLineStyleString(2,"[12 12]"); // postscript dashes

  // get rid of X error bars 
  //sphenixStyle->SetErrorX(0.001);
  // get rid of error bar caps
  sphenixStyle->SetEndErrorSize(0.);

  // do not display any of the standard histogram decorations
  sphenixStyle->SetOptTitle(0);
  //sphenixStyle->SetOptStat(1111);
  sphenixStyle->SetOptStat(0);
  //sphenixStyle->SetOptFit(1111);
  sphenixStyle->SetOptFit(0);

  // put tick marks on top and RHS of plots
  sphenixStyle->SetPadTickX(1);
  sphenixStyle->SetPadTickY(1);

  // legend modificatin
  sphenixStyle->SetLegendBorderSize(0);
  sphenixStyle->SetLegendFillColor(0);
  sphenixStyle->SetLegendFont(font);


#if ROOT_VERSION_CODE >= ROOT_VERSION(6,00,0)
  std::cout << "sPhenixStyle: ROOT6 mode" << std::endl;
  sphenixStyle->SetLegendTextSize(tsize);
  sphenixStyle->SetPalette(kBird);
#else
  std::cout << "sPhenixStyle: ROOT5 mode" << std::endl;
  // color palette - manually define 'kBird' palette only available in ROOT 6
  Int_t alpha = 0;
  Double_t stops[9] = { 0.0000, 0.1250, 0.2500, 0.3750, 0.5000, 0.6250, 0.7500, 0.8750, 1.0000};
  Double_t red[9]   = { 0.2082, 0.0592, 0.0780, 0.0232, 0.1802, 0.5301, 0.8186, 0.9956, 0.9764};
  Double_t green[9] = { 0.1664, 0.3599, 0.5041, 0.6419, 0.7178, 0.7492, 0.7328, 0.7862, 0.9832};
  Double_t blue[9]  = { 0.5293, 0.8684, 0.8385, 0.7914, 0.6425, 0.4662, 0.3499, 0.1968, 0.0539};
  TColor::CreateGradientColorTable(9, stops, red, green, blue, 255, alpha);
#endif

  sphenixStyle->SetNumberContours(80);

  return sphenixStyle;

}
开发者ID:HaiwangYu,项目名称:macros,代码行数:97,代码来源:sPhenixStyle.C

示例13: roc_plot

void roc_plot(){

 TStyle *tdrStyle = new TStyle("tdrStyle","Style for P-TDR");

  // For the canvas:
  tdrStyle->SetCanvasBorderMode(0);
  tdrStyle->SetCanvasColor(kWhite);
  tdrStyle->SetCanvasDefH(600); //Height of canvas
  tdrStyle->SetCanvasDefW(600); //Width of canvas
  tdrStyle->SetCanvasDefX(0);   //POsition on screen
  tdrStyle->SetCanvasDefY(0);

  // For the Pad:
  tdrStyle->SetPadBorderMode(0);
  tdrStyle->SetPadColor(kWhite);
  tdrStyle->SetPadGridX(true);
  tdrStyle->SetPadGridY(true);
  tdrStyle->SetGridColor(0);
  tdrStyle->SetGridStyle(3);
  tdrStyle->SetGridWidth(1);

  // For the frame:
  tdrStyle->SetFrameBorderMode(0);
  tdrStyle->SetFrameBorderSize(1);
  tdrStyle->SetFrameFillColor(0);
  tdrStyle->SetFrameFillStyle(0);
  tdrStyle->SetFrameLineColor(1);
  tdrStyle->SetFrameLineStyle(1);
  tdrStyle->SetFrameLineWidth(1);

  // For the histo:
  tdrStyle->SetHistLineColor(1);
  tdrStyle->SetHistLineStyle(0);
  tdrStyle->SetHistLineWidth(1);
  tdrStyle->SetEndErrorSize(2);
  tdrStyle->SetErrorX(0.);

  tdrStyle->SetMarkerStyle(20);

  //For the fit/function:
  tdrStyle->SetOptFit(1);
  tdrStyle->SetFitFormat("5.4g");
  tdrStyle->SetFuncColor(2);
  tdrStyle->SetFuncStyle(1);
  tdrStyle->SetFuncWidth(1);

  //For the date:
  tdrStyle->SetOptDate(0);

  // For the statistics box:
  tdrStyle->SetOptFile(0);
  tdrStyle->SetOptStat("emr"); // To display the mean and RMS:   SetOptStat("mr");
  tdrStyle->SetStatColor(kWhite);
  tdrStyle->SetStatFont(42);
  tdrStyle->SetStatFontSize(0.025);
  tdrStyle->SetStatTextColor(1);
  tdrStyle->SetStatFormat("6.4g");
  tdrStyle->SetStatBorderSize(1);
  tdrStyle->SetStatH(0.1);
  tdrStyle->SetStatW(0.15);

  // Margins:
  tdrStyle->SetPadTopMargin(0.05);
  tdrStyle->SetPadBottomMargin(0.13);
  tdrStyle->SetPadLeftMargin(0.13);
  tdrStyle->SetPadRightMargin(0.05);

  // For the Global title:
  tdrStyle->SetOptTitle(0);
  tdrStyle->SetTitleFont(42);
  tdrStyle->SetTitleColor(1);
  tdrStyle->SetTitleTextColor(1);
  tdrStyle->SetTitleFillColor(10);
  tdrStyle->SetTitleFontSize(0.05);

  // For the axis titles:
  tdrStyle->SetTitleColor(1, "XYZ");
  tdrStyle->SetTitleFont(42, "XYZ");
  tdrStyle->SetTitleSize(0.06, "XYZ");
  tdrStyle->SetTitleXOffset(0.9);
  tdrStyle->SetTitleYOffset(1.05);

  // For the axis labels:
  tdrStyle->SetLabelColor(1, "XYZ");
  tdrStyle->SetLabelFont(42, "XYZ");
  tdrStyle->SetLabelOffset(0.007, "XYZ");
  tdrStyle->SetLabelSize(0.05, "XYZ");

  // For the axis:
  tdrStyle->SetAxisColor(1, "XYZ");
  tdrStyle->SetStripDecimals(kTRUE);
  tdrStyle->SetTickLength(0.03, "XYZ");
  tdrStyle->SetNdivisions(510, "XYZ");
  tdrStyle->SetPadTickX(1);  // To get tick marks on the opposite side of the frame
  tdrStyle->SetPadTickY(1);

  // Change for log plots:
  tdrStyle->SetOptLogx(0);
  tdrStyle->SetOptLogy(0);
  tdrStyle->SetOptLogz(0);
//.........这里部分代码省略.........
开发者ID:zdemirag,项目名称:exo-higgs,代码行数:101,代码来源:roc_plot.C

示例14: setStyle

void setStyle(){

//Style//

  TStyle *tdrStyle = new TStyle("tdrStyle","Style for P-TDR");

// For the canvas:
  tdrStyle->SetCanvasBorderMode(0);
  tdrStyle->SetCanvasColor(kWhite);
  tdrStyle->SetCanvasDefH(600); //Height of canvas
  tdrStyle->SetCanvasDefW(600); //Width of canvas
  tdrStyle->SetCanvasDefX(0);   //POsition on screen
  tdrStyle->SetCanvasDefY(0);

// For the Pad:
  tdrStyle->SetPadBorderMode(0);
  tdrStyle->SetPadColor(kWhite);
  tdrStyle->SetPadGridX(false);
  tdrStyle->SetPadGridY(false);
  tdrStyle->SetGridColor(0);
  tdrStyle->SetGridStyle(3);
  tdrStyle->SetGridWidth(1);

// For the frame:
  tdrStyle->SetFrameBorderMode(0);
  tdrStyle->SetFrameBorderSize(1);
  tdrStyle->SetFrameFillColor(0);
  tdrStyle->SetFrameFillStyle(0);
  tdrStyle->SetFrameLineColor(1);
  tdrStyle->SetFrameLineStyle(1);
  tdrStyle->SetFrameLineWidth(1);

  tdrStyle->SetPadTopMargin(0.05);
  tdrStyle->SetPadBottomMargin(0.13);
  tdrStyle->SetPadLeftMargin(0.16);
  tdrStyle->SetPadRightMargin(0.02);

// For the Global title:

  tdrStyle->SetOptTitle(0);
  tdrStyle->SetTitleFont(42);
  tdrStyle->SetTitleColor(1);
  tdrStyle->SetTitleTextColor(1);
  tdrStyle->SetTitleFillColor(10);
  tdrStyle->SetTitleFontSize(0.05);

// For the axis titles:

  tdrStyle->SetTitleColor(1, "XYZ");
  tdrStyle->SetTitleFont(42, "XYZ");
  tdrStyle->SetTitleSize(0.06, "XYZ");
  tdrStyle->SetTitleXOffset(0.9);
  tdrStyle->SetTitleYOffset(0.9);

// For the axis labels:

  tdrStyle->SetLabelColor(1, "XYZ");
  tdrStyle->SetLabelFont(42, "XYZ");
  tdrStyle->SetLabelOffset(0.007, "XYZ");
  tdrStyle->SetLabelSize(0.05, "XYZ");

// For the axis:

  tdrStyle->SetAxisColor(1, "XYZ");
  //tdrStyle->SetStripDecimals(kTRUE);
  tdrStyle->SetTickLength(0.03, "XYZ");
  tdrStyle->SetNdivisions(510, "XYZ");
  tdrStyle->SetPadTickX(1);  // To get tick marks on the opposite side of the frame
  tdrStyle->SetPadTickY(1);

  tdrStyle->SetPaperSize(20.,20.);

  tdrStyle->SetHatchesLineWidth(5);
  tdrStyle->SetHatchesSpacing(0.05);

  tdrStyle->SetOptStat(0);

  tdrStyle->cd();
}
开发者ID:cihar29,项目名称:OffsetTreeMaker,代码行数:79,代码来源:offsetpT.c

示例15: SemiFormalStyle

// Create my custom FORMAL style
// *****************************
void SemiFormalStyle(void) {

    std::cout << " *** void getSemiFormalStyle(void) *** Custom  TStyle initialized!" << std::endl;
    TStyle *semiFStyle = new TStyle("semiFStyle","Style for AN09");

    // For the canvas:
    semiFStyle->SetCanvasBorderMode(0);
    semiFStyle->SetCanvasColor(kWhite);
    semiFStyle->SetCanvasDefH(600); //Height of canvas
    semiFStyle->SetCanvasDefW(600); //Width of canvas
    semiFStyle->SetCanvasDefX(0);   //POsition on screen
    semiFStyle->SetCanvasDefY(0);
    // For the Pad:
    semiFStyle->SetPadBorderMode(0);
    // semiFStyle->SetOptTitle(0); // delete histogram titles
    // semiFStyle->SetPadBorderSize(Width_t size = 1);
    semiFStyle->SetPadColor(kWhite);
    semiFStyle->SetPadGridX(true);
    semiFStyle->SetPadGridY(true);
    semiFStyle->SetGridColor(0);
    semiFStyle->SetGridStyle(3);
    semiFStyle->SetGridWidth(1);

    // For the frame:
    semiFStyle->SetFrameBorderMode(0);
    semiFStyle->SetFrameBorderSize(1);
    semiFStyle->SetFrameFillColor(0);
    semiFStyle->SetFrameFillStyle(0);
    semiFStyle->SetFrameLineColor(1);
    semiFStyle->SetFrameLineStyle(1);
    semiFStyle->SetFrameLineWidth(1);

    // For the histo:
    // semiFStyle->SetHistFillColor(1);
    // semiFStyle->SetHistFillStyle(0);
    semiFStyle->SetHistLineColor(1);
    semiFStyle->SetHistLineStyle(0);
    semiFStyle->SetHistLineWidth(1);
    // semiFStyle->SetLegoInnerR(Float_t rad = 0.5);
    // semiFStyle->SetNumberContours(Int_t number = 20);

    semiFStyle->SetEndErrorSize(2);
    //semiFStyle->SetErrorMarker(20);
    semiFStyle->SetErrorX(0.);

    semiFStyle->SetMarkerStyle(20);

    //For the fit/function:
    semiFStyle->SetOptFit(1);
    semiFStyle->SetFitFormat("5.4g");
    semiFStyle->SetFuncColor(2);
    semiFStyle->SetFuncStyle(1);
    semiFStyle->SetFuncWidth(1);

    //For the date:
    semiFStyle->SetOptDate(1);

    // For the statistics box:
    semiFStyle->SetOptFile(0);
    semiFStyle->SetOptStat("mnre"); // stats box
    semiFStyle->SetOptFit(1111); // fit box
    semiFStyle->SetStatColor(kWhite);
    semiFStyle->SetStatFont(42);
    semiFStyle->SetStatFontSize(0.025);
    semiFStyle->SetStatTextColor(1);
    semiFStyle->SetStatFormat("6.4g");
    semiFStyle->SetStatBorderSize(1);
    semiFStyle->SetStatH(0.1);
    semiFStyle->SetStatW(0.15);

    // Margins:
    semiFStyle->SetPadTopMargin(0.15);
    semiFStyle->SetPadBottomMargin(0.13);
    semiFStyle->SetPadLeftMargin(0.13);
    semiFStyle->SetPadRightMargin(0.15);

    // For the Global title:
    //  semiFStyle->SetOptTitle(0);
    semiFStyle->SetTitleFont(42);
    semiFStyle->SetTitleColor(1);
    semiFStyle->SetTitleTextColor(1);
    semiFStyle->SetTitleFillColor(10);
    semiFStyle->SetTitleFontSize(0.05);

    // For the axis titles:
    semiFStyle->SetTitleColor(1, "XYZ");
    semiFStyle->SetTitleFont(42, "XYZ");
    semiFStyle->SetTitleSize(0.06, "XYZ");
    semiFStyle->SetTitleXOffset(1.5);
    semiFStyle->SetTitleYOffset(1.5);
    semiFStyle->SetTitleOffset(1.5, "Y"); // Another way to set the Offset

    // For the axis labels:

    semiFStyle->SetLabelColor(1, "XYZ");
    semiFStyle->SetLabelFont(42, "XYZ");
    semiFStyle->SetLabelOffset(0.007, "XYZ");
    semiFStyle->SetLabelSize(0.05, "XYZ");
//.........这里部分代码省略.........
开发者ID:nsahoo,项目名称:cmssw-1,代码行数:101,代码来源:myTStyles.C


注:本文中的TStyle::SetLabelSize方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。