ATLAS Offline Software
Loading...
Searching...
No Matches
atlasStyleMacro.py
Go to the documentation of this file.
1#!/usr/bin/python
2
3# Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
4# -*- coding: utf-8 -*-
5
6from ROOT import TStyle
7
8atlasStyle = TStyle("myStyle","myStyle");
9
10atlasStyle.SetOptStat(0)
11atlasStyle.SetPalette(1)
12
13icol=0; #WHITE
14atlasStyle.SetFrameBorderMode(icol);
15atlasStyle.SetFrameFillColor(icol);
16atlasStyle.SetCanvasBorderMode(icol);
17atlasStyle.SetCanvasColor(icol);
18atlasStyle.SetPadBorderMode(icol);
19atlasStyle.SetPadColor(icol);
20atlasStyle.SetStatColor(icol);
21atlasStyle.SetTitleFillColor(icol);
22
23#atlasStyle.SetPaperSize(20,26);
24#atlasStyle.SetPadTopMargin(0.02);
25#atlasStyle.SetPadRightMargin(0.10);
26#atlasStyle.SetPadBottomMargin(0.10);
27#atlasStyle.SetPadLeftMargin(0.14);
28
29atlasStyle.SetPaperSize(20,26);
30atlasStyle.SetPadTopMargin(0.05);
31atlasStyle.SetPadRightMargin(0.05);
32atlasStyle.SetPadBottomMargin(0.16);
33atlasStyle.SetPadLeftMargin(0.16);
34
35#Int_t font=72;
36font=42
37tsize=0.05
38atlasStyle.SetTextFont(font);
39atlasStyle.SetTextSize(tsize);
40
41atlasStyle.SetLabelFont(font,"x");
42atlasStyle.SetLabelFont(font,"y");
43atlasStyle.SetLabelFont(font,"z");
44
45atlasStyle.SetTitleFont(font,"x");
46atlasStyle.SetTitleFont(font,"y");
47atlasStyle.SetTitleFont(font,"z");
48atlasStyle.SetTitleFont(font,"");
49
50atlasStyle.SetLabelSize(tsize,"x");
51atlasStyle.SetLabelSize(tsize,"y");
52atlasStyle.SetLabelSize(tsize,"z");
53
54atlasStyle.SetTitleSize(tsize,"x");
55atlasStyle.SetTitleSize(tsize,"y");
56atlasStyle.SetTitleSize(tsize,"z");
57
58atlasStyle.SetTitleSize(0.05,"");
59atlasStyle.SetTitleOffset(1.40,"");
60
61atlasStyle.SetStatFont(font);
62
63#atlasStyle->SetLabelOffset(0.05,"x");
64#atlasStyle->SetLabelOffset(0.05,"y");
65#atlasStyle->SetLabelOffset(0.05,"z");
66
67#tlasStyle.SetTitleY(0.99);
68#tlasStyle.SetTitleX(0.);
69
70#atlasStyle->SetTitleOffset(1.5,"x");
71#tlasStyle.SetTitleOffset(1.2,"y");
72#tlasStyle.SetTitleOffset(1.2,"z");
73
74#use bold lines and markers
75atlasStyle.SetMarkerStyle(20);
76atlasStyle.SetMarkerSize(1.2);
77atlasStyle.SetHistLineWidth(1);
78atlasStyle.SetLineStyleString(2,"[12 12]"); #postscript dashes
79
80#get rid of X error bars
81#atlasStyle->SetErrorX(0.001);
82#get rid of error bar caps
83atlasStyle.SetEndErrorSize(0.);
84
85#do not display any of the standard histogram decorations
86atlasStyle.SetOptTitle(0);
87#atlasStyle.SetOptStat(1111);
88atlasStyle.SetOptStat(0);
89#atlasStyle.SetOptFit(1111);
90atlasStyle.SetOptFit(0);
91# put tick marks on top and RHS of plots
92atlasStyle.SetPadTickX(1);
93atlasStyle.SetPadTickY(1);
94
95#atlasStyle.SetOptStat("rm");
96
97atlasStyle.cd();