22 gROOT->SetStyle(
"Plain");
24 gStyle -> SetPadTickX (1);
25 gStyle -> SetPadTickY (1);
30 gStyle -> SetCanvasBorderMode (0);
31 gStyle -> SetFrameBorderMode (0);
32 gStyle -> SetPadBorderMode (0);
33 gStyle -> SetDrawBorder (0);
34 gStyle -> SetCanvasBorderSize (0);
35 gStyle -> SetFrameBorderSize (0);
36 gStyle -> SetPadBorderSize (0);
37 gStyle -> SetTitleBorderSize (0);
42 gStyle -> SetCanvasDefH (600);
43 gStyle -> SetCanvasDefW (730);
44 gStyle -> SetCanvasDefX (10);
45 gStyle -> SetCanvasDefY (10);
50 gStyle -> SetMarkerStyle (20);
51 gStyle -> SetMarkerSize (1);
56 gStyle -> SetFrameLineWidth (1);
57 gStyle -> SetFuncWidth (2);
58 gStyle -> SetHistLineWidth (3);
59 gStyle -> SetFuncColor (2);
60 gStyle -> SetFuncWidth (3);
65 gStyle -> SetPadTopMargin (0.10);
66 gStyle -> SetPadBottomMargin (0.20);
67 gStyle -> SetPadLeftMargin (0.15);
68 gStyle -> SetPadRightMargin (0.03);
73 gStyle -> SetNdivisions (505,
"xyz");
78 gStyle -> SetLabelSize (0.050,
"xyz");
79 gStyle -> SetLabelOffset (0.005,
"x" );
80 gStyle -> SetLabelOffset (0.005,
"y" );
81 gStyle -> SetLabelOffset (0.005,
"z" );
82 gStyle -> SetTitleSize (0.060,
"xyz");
83 gStyle -> SetTitleOffset (1.200,
"xz" );
84 gStyle -> SetTitleOffset (1.000,
"y" );
88 gStyle -> SetOptDate (0);
89 gStyle -> SetOptFile (0);
90 gStyle -> SetOptStat (0);
91 gStyle -> SetStatFormat (
"6.2f");
92 gStyle -> SetFitFormat (
"8.4f");
93 gStyle -> SetOptFit (1);
94 gStyle -> SetStatH (0.20);
95 gStyle -> SetStatStyle (0);
96 gStyle -> SetStatW (0.30);
97 gStyle -> SetStatX (0.845);
98 gStyle -> SetStatY (0.845);
99 gStyle -> SetOptTitle (0);
100 gStyle -> SetTitleX (0.15);
101 gStyle -> SetTitleW (0.75);
102 gStyle -> SetTitleY (0.90);
103 gStyle -> SetPalette (1);
104 gStyle -> SetLegendBorderSize (0);
109 gStyle -> SetPaperSize (TStyle::kA4);
123 double dcol = -1/double(ncol);
125 for (
int j = 0; j < ncol; j++) {
127 stops[j] = double(j)/double(ncol-1);
135 TColor::CreateGradientColorTable(ncol,stops,red,green,blue,totcol);
137 gStyle -> SetFuncWidth (1);
138 gStyle -> SetHistLineWidth (1);
139 gStyle -> SetFuncColor (1);
140 gStyle -> SetFuncWidth (1);
147 TGraph* gr,
int lcol,
int lsty,
int lwid,
int mcol,
int msty,
double msiz)
151 if (lcol >= 0) gr -> SetLineColor (lcol);
152 if (lsty >= 0) gr -> SetLineStyle (lsty);
153 if (lwid >= 0) gr -> SetLineWidth (lwid);
155 if (mcol >= 0) gr -> SetMarkerColor (mcol);
156 if (msty >= 0) gr -> SetMarkerStyle (msty);
157 if (msiz >= 0) gr -> SetMarkerSize (msiz);
161 TH1* hst,
int lcol,
int lsty,
int lwid,
int mcol,
int msty,
double msiz)
165 if (lcol >= 0) hst -> SetLineColor (lcol);
166 if (lsty >= 0) hst -> SetLineStyle (lsty);
167 if (lwid >= 0) hst -> SetLineWidth (lwid);
169 if (mcol >= 0) hst -> SetMarkerColor (mcol);
170 if (msty >= 0) hst -> SetMarkerStyle (msty);
171 if (msiz >= 0) hst -> SetMarkerSize (msiz);
void SetDefaultStyle(bool black_n_white=false)
void Format(TGraph *gr, int lcol, int lsty, int lwid, int mcol, int msty, double msiz)