-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrootstyle.c
88 lines (69 loc) · 2.23 KB
/
rootstyle.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
{
TStyle *newStyle= new TStyle("newStyle","new style");
// Histogram title
newStyle->SetTitleAlign(23) ;
newStyle->SetTitleX(.5);
newStyle->SetTitleBorderSize(0);
newStyle->SetCanvasColor(0);
// use plain black on white colors
Int_t icol=0;
newStyle->SetFrameBorderMode(icol);
newStyle->SetCanvasBorderMode(icol);
newStyle->SetPadBorderMode(icol);
newStyle->SetPadColor(icol);
newStyle->SetCanvasColor(icol);
newStyle->SetStatColor(icol);
newStyle->SetFillColor(icol);
newStyle->SetFrameFillColor(icol);
// use large fonts
Int_t font = 42;
Double_t tsize = 0.08;
Double_t tsize1 = 0.08;
newStyle->SetTextFont(font);
newStyle->SetTitleFontSize(tsize1);
newStyle->SetTextSize(tsize1);
newStyle->SetLabelFont(font,"x");
newStyle->SetTitleFont(font,"x");
newStyle->SetLabelFont(font,"y");
newStyle->SetTitleFont(font,"y");
newStyle->SetLabelFont(font,"z");
newStyle->SetTitleFont(font,"z");
newStyle->SetLabelSize(tsize,"x");
newStyle->SetTitleSize(tsize1,"x");
newStyle->SetLabelSize(tsize,"y");
newStyle->SetTitleSize(tsize1,"y");
newStyle->SetLabelSize(tsize,"z");
newStyle->SetTitleSize(tsize1,"z");
newStyle->SetLabelSize(tsize);
//use bold lines and markers
newStyle->SetMarkerStyle(20);
newStyle->SetMarkerSize(1.2);
newStyle->SetHistLineWidth(1.5);
newStyle->SetLineStyleString(2,"[12 12]"); // postscript dashes
newStyle->SetLabelOffset(0.04, "x");
newStyle->SetLabelOffset(0.04, "y");
newStyle->SetLabelOffset(0.04, "z");
newStyle->SetTitleOffset(1.3);
//get rid of X error bars and y error bar caps
//newStyle->SetErrorX(0.001);
//do not display any of the standard histogram decorations
newStyle->SetOptTitle(0);
newStyle->SetOptStat(0);
newStyle->SetOptFit(0);
gROOT->SetStyle("Plain");
// Legends
newStyle->SetLegendBorderSize(0);
// Statistics
newStyle->SetPalette(1);
newStyle->SetCanvasColor(0);
newStyle->SetFrameFillColor(0);
newStyle->SetFrameBorderMode(0);
newStyle->SetStatBorderSize(1);
newStyle->SetStatColor(0);
newStyle->SetStatX(0.85);
newStyle->SetStatY(0.85);
newStyle->SetStatFontSize(0.04);
newStyle->SetStatFont(42);
newStyle->SetStatW(0.15);
newStyle->SetStatH(0.2);
}