CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_5_3_13_patch3/src/HiggsAnalysis/CombinedLimit/src/tdrstyle.cc

Go to the documentation of this file.
00001 #include <TStyle.h>
00002 namespace utils { void tdrStyle(); }
00003 
00004 void utils::tdrStyle() {
00005     gStyle->SetPadTopMargin(0.05);
00006     gStyle->SetPadBottomMargin(0.13);
00007     gStyle->SetPadLeftMargin(0.16);
00008     gStyle->SetPadRightMargin(0.04);
00009     gStyle->SetPalette(1);
00010     gStyle->SetHistMinimumZero(1);
00011     gStyle->SetCanvasBorderMode(0);
00012     gStyle->SetCanvasColor(kWhite);
00013     gStyle->SetPadBorderMode(0);
00014     gStyle->SetPadColor(kWhite);
00015     gStyle->SetFrameBorderMode(0);
00016     gStyle->SetFrameBorderSize(1);
00017     gStyle->SetFrameFillColor(0);
00018     gStyle->SetStatColor(kWhite);
00019     gStyle->SetTitleColor(1);
00020     gStyle->SetTitleFillColor(10);
00021 
00022     gStyle->SetOptTitle(0);
00023 
00024     gStyle->SetStatFont(42);
00025     gStyle->SetStatFontSize(0.04);
00026     gStyle->SetTitleColor(1, "XYZ");
00027     gStyle->SetTitleFont(42, "XYZ");
00028     gStyle->SetTitleSize(0.06, "XYZ");
00029     // gStyle->SetTitleXSize(Float_t size = 0.02); // Another way to set the size?
00030     // gStyle->SetTitleYSize(Float_t size = 0.02);
00031     gStyle->SetTitleXOffset(0.9);
00032     gStyle->SetTitleYOffset(1.25);
00033     // gStyle->SetTitleOffset(1.1, "Y"); // Another way to set the Offset
00034 
00035     // For the axis labels:
00036 
00037     gStyle->SetLabelColor(1, "XYZ");
00038     gStyle->SetLabelFont(42, "XYZ");
00039     gStyle->SetLabelOffset(0.007, "XYZ");
00040     gStyle->SetLabelSize(0.05, "XYZ");
00041 
00042     // For the axis:
00043     gStyle->SetAxisColor(1, "XYZ");
00044     gStyle->SetStripDecimals(kTRUE);
00045     gStyle->SetTickLength(0.03, "XYZ");
00046     gStyle->SetNdivisions(510, "XYZ");
00047     gStyle->SetPadTickX(1);  // To get tick marks on the opposite side of the frame
00048     gStyle->SetPadTickY(1);
00049 }