30 gROOT->SetStyle(
"Plain");
32 gStyle -> SetPadTickX (1);
33 gStyle -> SetPadTickY (1);
38 gStyle -> SetCanvasBorderMode (0);
39 gStyle -> SetFrameBorderMode (0);
40 gStyle -> SetPadBorderMode (0);
41 gStyle -> SetDrawBorder (0);
42 gStyle -> SetCanvasBorderSize (0);
43 gStyle -> SetFrameBorderSize (0);
44 gStyle -> SetPadBorderSize (0);
45 gStyle -> SetTitleBorderSize (0);
50 gStyle -> SetCanvasDefH (600);
51 gStyle -> SetCanvasDefW (730);
52 gStyle -> SetCanvasDefX (10);
53 gStyle -> SetCanvasDefY (10);
58 gStyle -> SetMarkerStyle (20);
59 gStyle -> SetMarkerSize (1);
64 gStyle -> SetFrameLineWidth (1);
65 gStyle -> SetFuncWidth (2);
66 gStyle -> SetHistLineWidth (3);
67 gStyle -> SetFuncColor (2);
68 gStyle -> SetFuncWidth (3);
73 gStyle -> SetPadTopMargin (0.10);
74 gStyle -> SetPadBottomMargin (0.20);
75 gStyle -> SetPadLeftMargin (0.15);
76 gStyle -> SetPadRightMargin (0.03);
81 gStyle -> SetNdivisions (505,
"xyz");
86 gStyle -> SetLabelSize (0.050,
"xyz");
87 gStyle -> SetLabelOffset (0.005,
"x" );
88 gStyle -> SetLabelOffset (0.005,
"y" );
89 gStyle -> SetLabelOffset (0.005,
"z" );
90 gStyle -> SetTitleSize (0.060,
"xyz");
91 gStyle -> SetTitleOffset (1.200,
"xz" );
92 gStyle -> SetTitleOffset (1.000,
"y" );
96 gStyle -> SetOptDate (0);
97 gStyle -> SetOptFile (0);
98 gStyle -> SetOptStat (0);
99 gStyle -> SetStatFormat (
"6.2f");
100 gStyle -> SetFitFormat (
"8.4f");
101 gStyle -> SetOptFit (1);
102 gStyle -> SetStatH (0.20);
103 gStyle -> SetStatStyle (0);
104 gStyle -> SetStatW (0.30);
105 gStyle -> SetStatX (0.845);
106 gStyle -> SetStatY (0.845);
107 gStyle -> SetOptTitle (0);
108 gStyle -> SetTitleX (0.15);
109 gStyle -> SetTitleW (0.75);
110 gStyle -> SetTitleY (0.90);
111 gStyle -> SetPalette (1);
112 gStyle -> SetLegendBorderSize (0);
117 gStyle -> SetPaperSize (TStyle::kA4);
131 double dcol = -1/double(ncol);
133 for (
int j = 0; j < ncol; j++) {
135 stops[j] = double(j)/double(ncol-1);
143 TColor::CreateGradientColorTable(ncol,stops,red,green,blue,totcol);
145 gStyle -> SetFuncWidth (1);
146 gStyle -> SetHistLineWidth (1);
147 gStyle -> SetFuncColor (1);
148 gStyle -> SetFuncWidth (1);
155 TGraph* gr,
int lcol,
int lsty,
int lwid,
int mcol,
int msty,
double msiz)
159 if (lcol >= 0) gr -> SetLineColor (lcol);
160 if (lsty >= 0) gr -> SetLineStyle (lsty);
161 if (lwid >= 0) gr -> SetLineWidth (lwid);
163 if (mcol >= 0) gr -> SetMarkerColor (mcol);
164 if (msty >= 0) gr -> SetMarkerStyle (msty);
165 if (msiz >= 0) gr -> SetMarkerSize (msiz);
169 TH1* hst,
int lcol,
int lsty,
int lwid,
int mcol,
int msty,
double msiz)
173 if (lcol >= 0) hst -> SetLineColor (lcol);
174 if (lsty >= 0) hst -> SetLineStyle (lsty);
175 if (lwid >= 0) hst -> SetLineWidth (lwid);
177 if (mcol >= 0) hst -> SetMarkerColor (mcol);
178 if (msty >= 0) hst -> SetMarkerStyle (msty);
179 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)