-
Notifications
You must be signed in to change notification settings - Fork 2
/
rootlogon.C
43 lines (33 loc) · 1.1 KB
/
rootlogon.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
// This is the file rootlogon.C
{
printf("Loading MyStyle ... \n");
TStyle *myStyle = new TStyle("MyStyle","My Root Styles");
// from ROOT plain style
myStyle->SetTitleFillColor(0) ;
myStyle->SetTitleBorderSize(0);
myStyle->SetCanvasBorderMode(0);
myStyle->SetPadBorderMode(0);
myStyle->SetPadColor(0);
myStyle->SetCanvasColor(0);
myStyle->SetTitleColor(0);
myStyle->SetStatColor(0);
myStyle->SetPalette(1);
myStyle->SetLabelSize(0.025,"xyz"); // size of axis values
// myStyle->SetTitleOffset(1.2, "Y");
// myStyle->SetTitleOffset(1.2, "X");
// default canvas positioning
myStyle->SetCanvasDefX(900);
myStyle->SetCanvasDefY(20);
myStyle->SetCanvasDefH(550);
myStyle->SetCanvasDefW(540);
myStyle->SetPadBottomMargin(0.1);
myStyle->SetPadTopMargin(0.1);
myStyle->SetPadLeftMargin(0.125);
myStyle->SetPadRightMargin(0.05);
// myStyle->SetPadTickX(1);
// myStyle->SetPadTickY(1);
myStyle->SetFrameBorderMode(0);
myStyle->SetStatColor(0);
myStyle->SetStatBorderSize(1);
gROOT->SetStyle("MyStyle");
}