8 from ROOT
import TPaveText, gStyle
17 text = TPaveText(0.0, 0.95, 1.0, 1.0,
"blNDC")
18 text.AddText(config.message)
21 text.SetTextSizePixels(10)
39 stat = plot.FindObject(
"stats")
40 stat.SetX1NDC(1 - config.statboxsize)
41 stat.SetY1NDC(1 - config.statboxsize)
55 gStyle.SetCanvasBorderMode(0)
56 gStyle.SetCanvasColor(0)
57 gStyle.SetCanvasDefH(800)
58 gStyle.SetCanvasDefW(800)
59 gStyle.SetCanvasDefX(0)
60 gStyle.SetCanvasDefY(0)
63 gStyle.SetFrameBorderMode(0)
64 gStyle.SetFrameBorderSize(1)
65 gStyle.SetFrameFillColor(1)
66 gStyle.SetFrameFillStyle(0)
67 gStyle.SetFrameLineColor(1)
68 gStyle.SetFrameLineStyle(0)
69 gStyle.SetFrameLineWidth(1)
72 gStyle.SetPadBorderMode(0)
74 gStyle.SetPadGridX(
False)
75 gStyle.SetPadGridY(
False)
76 gStyle.SetGridColor(0)
77 gStyle.SetGridStyle(3)
78 gStyle.SetGridWidth(1)
81 gStyle.SetPadTopMargin(0.08)
82 gStyle.SetPadBottomMargin(0.19)
83 gStyle.SetPadLeftMargin(0.17)
87 gStyle.SetHistLineColor(1)
88 gStyle.SetHistLineStyle(0)
89 gStyle.SetHistLineWidth(2)
90 gStyle.SetMarkerSize(1.4)
91 gStyle.SetEndErrorSize(4)
97 gStyle.SetAxisColor(1,
"XYZ")
98 gStyle.SetTickLength(0.03,
"XYZ")
99 gStyle.SetNdivisions(510,
"XYZ")
100 gStyle.SetPadTickX(1)
101 gStyle.SetPadTickY(1)
102 gStyle.SetStripDecimals(
False)
105 gStyle.SetTitleColor(1,
"XYZ")
106 gStyle.SetLabelColor(1,
"XYZ")
107 gStyle.SetLabelFont(42,
"XYZ")
108 gStyle.SetLabelOffset(0.007,
"XYZ")
109 gStyle.SetLabelSize(0.045,
"XYZ")
110 gStyle.SetTitleFont(42,
"XYZ")
111 gStyle.SetTitleSize(0.06,
"XYZ")
114 gStyle.SetLegendBorderSize(0)
def setgstyle
set gstyle by https://github.com/mschrode/AwesomePlots/blob/master/Style.cc
def identification
creates the identification text in the top left corner
def setstatsize
statistics size