-
Notifications
You must be signed in to change notification settings - Fork 494
Expand file tree
/
Copy pathstyle.macro
More file actions
110 lines (97 loc) · 2.71 KB
/
style.macro
File metadata and controls
110 lines (97 loc) · 2.71 KB
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
#ifndef style_C
#define style_C
void style()
{
gStyle->SetPadColor(0);
gStyle->SetPadBorderSize(0);
gStyle->SetPadBorderMode(0);
gStyle->SetPadTickX(1);
gStyle->SetPadTickY(1);
gStyle->SetCanvasColor(0);
gStyle->SetCanvasBorderMode(0);
gStyle->SetCanvasBorderSize(0);
gStyle->SetFrameBorderMode(0);
//gStyle->SetFrameLineColor(0);
gStyle->SetFrameFillColor(0);
//gStyle->SetOptStat(00000);
//gStyle->SetTitleColor(0);
gStyle->SetTitleBorderSize(0);
// gStyle->SetTitleTextColor(0);
// gStyle->SetTitleFillColor(0);
/*
gStyle->SetTitleColor(0);
gStyle->SetTitleBorderSize(0);
gStyle->SetTitleTextColor(0);
gStyle->SetTitleFillColor(0);
*/
// gStyle->SetPalette(1);
gStyle->SetCanvasColor(0);
gStyle->SetHistFillColor(0);
gStyle->SetHistFillStyle(0);
gStyle->SetOptStat(0);
// gStyle->SetPadTickX(1);
// gStyle->SetPadTickY(1);
gStyle->SetAxisColor(1, "X");
gStyle->SetAxisColor(1, "Y");
gStyle->SetAxisColor(1, "Z");
/*
gStyle->SetLabelColor(0, "X");
gStyle->SetLabelColor(0, "Y");
gStyle->SetLabelColor(0, "Z");
gStyle->SetTickLength(0.0, "X");
gStyle->SetTickLength(0.0, "Y");
gStyle->SetTickLength(0.0, "Z");
*/
gStyle->SetTitleXSize(0.05);
gStyle->SetTitleYSize(0.05);
gStyle->SetNdivisions(506, "X");
gStyle->SetNdivisions(506, "Y");
gStyle->SetNdivisions(506, "Z");
//gStyle->SetPadGridX(1);
//gStyle->SetPadGridY(1);
//gStyle->SetLabelOffset(0.02, "X");
//gStyle->SetLabelOffset(0.01, "Y");
//gStyle->SetLabelOffset(0.02, "Z");
gStyle->SetLabelSize(0.04, "xyz");
gStyle->SetTitleOffset(1.2,"xyz");
gStyle->SetTitleFont(42,"xyz");
gStyle->SetTextFont(42);
gStyle->SetTextSize(0.06);
gStyle->SetPadLeftMargin(0.15);
gStyle->SetPadRightMargin(0.05);
gStyle->SetPadBottomMargin(0.15);
gStyle->SetPadTopMargin(0.05);
gROOT->ForceStyle();
}
void SetGraphStyle(TGraph *g, Int_t m, Int_t c)
{
g->SetMarkerStyle(m);
g->SetMarkerColor(c);
g->SetLineColor(c);
g->SetLineWidth(1);
g->SetFillStyle(0);
g->SetFillColor(0);
g->SetMarkerSize(2.0);
if (m == 28 || m == 34 || m == 23 || m == 32 || m == 22)
g->SetMarkerSize(2.5);
if (m == 27 || m == 33 || m == 30 || m == 29)
g->SetMarkerSize(3.0);
}
void SetHistoStyle(TH1 *h, Int_t m, Int_t c, Int_t w = 1, Int_t s = 1)
{
h->SetMarkerStyle(m);
h->SetMarkerColor(c);
h->SetLineColor(c);
h->SetLineWidth(w);
h->SetLineStyle(s);
h->SetFillStyle(0);
h->SetFillColor(0);
h->SetMarkerSize(2.0);
if (m == 28 || m == 34 || m == 23 || m == 32 || m == 22)
h->SetMarkerSize(2.5);
if (m == 27 || m == 33 || m == 30 || m == 29)
h->SetMarkerSize(3.0);
if (m == 0)
h->SetMarkerSize(0);
}
#endif /* style_C */