BAT  0.9.4
The Bayesian analysis toolkit
 All Classes Namespaces Functions Variables Enumerations
BCAux.cxx
1 /*
2  * Copyright (C) 2007-2014, the BAT core developer team
3  * All rights reserved.
4  *
5  * For the licensing terms see doc/COPYING.
6  * For documentation see http://mpp.mpg.de/bat
7  */
8 
9 // ---------------------------------------------------------
10 
11 #include "BCAux.h"
12 
13 #include <TStyle.h>
14 #include <TGaxis.h>
15 
16 // ---------------------------------------------------------
17 
19 {
20  // pads
21  gStyle->SetPadTopMargin (0.05);
22  gStyle->SetPadBottomMargin(0.11);
23  gStyle->SetPadLeftMargin (0.15);
24  gStyle->SetPadRightMargin (0.10);
25  gStyle->SetPadBorderMode (0);
26 
27  // canvases
28  gStyle->SetCanvasColor (kWhite);
29  gStyle->SetCanvasBorderMode(0);
30  gStyle->SetCanvasDefH (700);
31  gStyle->SetCanvasDefW ((int)(700.*(1.-gStyle->GetPadTopMargin()-gStyle->GetPadBottomMargin())/(1.-gStyle->GetPadLeftMargin()-gStyle->GetPadRightMargin())));
32 
33  // Frames
34  gStyle->SetFrameFillStyle (0);
35  gStyle->SetFrameFillColor (kWhite);
36  gStyle->SetFrameLineColor (kBlack);
37  gStyle->SetFrameLineStyle (0);
38  gStyle->SetFrameLineWidth (1);
39  gStyle->SetFrameBorderMode(0);
40 
41  // histograms
42  gStyle->SetHistFillColor(kWhite);
43  gStyle->SetHistFillStyle(0);
44  gStyle->SetHistLineColor(kBlack);
45  gStyle->SetHistLineStyle(0);
46  gStyle->SetHistLineWidth(1);
47  gStyle->SetStripDecimals(kFALSE);
48 
49  // set decimals
50  TGaxis::SetMaxDigits(4);
51 
52  // options
53  gStyle->SetOptTitle(0);
54 
55  // lines
56  gStyle->SetLineColor(kBlack);
57  gStyle->SetLineStyle(1);
58  gStyle->SetLineWidth(1);
59 
60  // markers
61  gStyle->SetMarkerStyle(kFullCircle);
62  gStyle->SetMarkerSize (1.0);
63 
64  // functions
65  gStyle->SetFuncColor(kBlack);
66  gStyle->SetFuncStyle(0);
67  gStyle->SetFuncWidth(2);
68 
69  // labels
70  gStyle->SetLabelFont(62, "X");
71  gStyle->SetLabelFont(62, "Y");
72 
73  // titles
74  gStyle->SetTitleFillColor(kWhite);
75  gStyle->SetTitleBorderSize(0);
76  gStyle->SetTitleFont (62, "");
77  gStyle->SetTitleOffset (0.0, "");
78  gStyle->SetTitleH (0.07);
79 
80  gStyle->SetTitleFont (62, "X");
81  gStyle->SetTitleOffset (1.1, "X");
82 
83  gStyle->SetTitleFont (62, "Y");
84  gStyle->SetTitleOffset (1.8, "Y");
85 
86  // ticks
87  gStyle->SetTickLength(0.03);
88 
89  // statistics box
90  gStyle->SetStatFont (62);
91  gStyle->SetStatColor(kWhite);
92  gStyle->SetStatH (0.20);
93  gStyle->SetStatW (0.20);
94  gStyle->SetStatX (0.965);
95  gStyle->SetStatY (0.90);
96 
97  // palette
98  gStyle->SetPalette(1,0);
99 
100 }
void SetStyle()
Definition: BCAux.cxx:18