-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathrootlogon.py
executable file
·62 lines (53 loc) · 1.48 KB
/
rootlogon.py
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
import ROOT
print "Using %s" % __file__
#set the global output info level
ROOT.gErrorIgnoreLevel = ROOT.kWarning
# whitening
ROOT.gStyle.SetFrameBorderMode(0)
ROOT.gStyle.SetFrameFillColor(0)
ROOT.gStyle.SetFrameLineColor(0)
ROOT.gStyle.SetFrameLineWidth(0)
ROOT.gStyle.SetCanvasBorderMode(0)
ROOT.gStyle.SetCanvasColor(0)
ROOT.gStyle.SetPadBorderMode(0)
ROOT.gStyle.SetPadColor(0)
ROOT.gStyle.SetStatColor(0)
ROOT.gStyle.SetDrawBorder(0)
# pad margins
ROOT.gStyle.SetPadTopMargin(0.05)
ROOT.gStyle.SetPadRightMargin(0.05)
ROOT.gStyle.SetPadBottomMargin(0.16)
ROOT.gStyle.SetPadLeftMargin(0.16)
ROOT.gStyle.SetTitleOffset(1.3, 'x')
ROOT.gStyle.SetTitleOffset(1.4, 'y')
# fonts
font = 42
ROOT.gStyle.SetTextFont(font)
ROOT.gStyle.SetLabelFont(font, 'xyz')
ROOT.gStyle.SetTitleFont(font, 'xyz')
ROOT.gStyle.SetTitleFont(font, 't')
ROOT.gStyle.SetStatFont(font)
# text sizes
ROOT.gStyle.SetTextSize(0.05)
ROOT.gStyle.SetLabelSize(0.05, 'xyz')
ROOT.gStyle.SetTitleSize(0.05, 'xyz')
ROOT.gStyle.SetTitleSize(0.05, 't')
ROOT.gStyle.SetStatFontSize(0.04)
# stat box
ROOT.gStyle.SetOptStat(0)
ROOT.gStyle.SetStatH(0.2)
ROOT.gStyle.SetStatW(0.2)
ROOT.gStyle.SetStatX(0.99)
# title
ROOT.gStyle.SetOptTitle(0)
ROOT.gStyle.SetTitleColor(1)
ROOT.gStyle.SetTitleFillColor(0)
ROOT.gStyle.SetTitleStyle(0)
ROOT.gStyle.SetTitleBorderSize(0)
ROOT.gStyle.SetTitleY(0.99)
ROOT.gStyle.SetTitleX(.1)
# get rid of error bar caps
ROOT.gStyle.SetEndErrorSize(0.)
# more ticks
ROOT.gStyle.SetPadTickX(1)
ROOT.gStyle.SetPadTickY(1)