45#include "TGraphErrors.h"
46#include "TGraphAsymmErrors.h"
52#include "TMultiGraph.h"
87 hist->SetFillStyle(fillstyle) ;
88 hist->SetFillColor(fillcolor) ;
94 hist->SetLineColor(linecolor) ;
95 hist->SetLineWidth(linewidth) ;
96 hist->SetLineStyle(linestyle) ;
101 float xlabelsize=0.05,
float xtitleoffset=1.4,
float xtitlesize=0.05,
102 float ylabelsize=0.05,
float ytitleoffset=1.4,
float ytitlesize=0.05)
104 hist->GetXaxis()->SetTitleSize(xtitlesize) ;
105 hist->GetXaxis()->SetTitleOffset(xtitleoffset) ;
106 hist->GetXaxis()->SetLabelSize(xlabelsize) ;
107 hist->GetYaxis()->SetTitleSize(ytitlesize) ;
108 hist->GetYaxis()->SetTitleOffset(ytitleoffset) ;
109 hist->GetYaxis()->SetLabelSize(ylabelsize) ;
115 hist->SetMarkerStyle(markerstyle) ;
116 hist->SetMarkerColor(markercolor) ;
117 hist->SetMarkerSize(markersize) ;
121 int fillstyle=1001,
int fillcolor=0,
122 int markerstyle=20,
int markercolor=1,
int markersize=1,
123 float xlabelsize=0.05,
float xtitleoffset=1.4,
float xtitlesize=0.05,
124 float ylabelsize=0.05,
float ytitleoffset=1.4,
float ytitlesize=0.05,
125 bool displaystats=
false)
128 SetHistAxisAttributes(hist,xlabelsize, xtitleoffset, xtitlesize, ylabelsize, ytitleoffset, ytitlesize) ;
131 hist->SetStats(displaystats) ;
138 pad->SetFillStyle(fillstyle) ;
139 pad->SetFillColor(fillcolor) ;
144 float leftmargin=0.15,
float rightmargin=0.05,
float bottommargin=0.15,
float topmargin=0.05,
145int bordermode=0,
bool logx=
false,
bool logy=
true,
bool settickx=
true,
bool setticky=
true)
148 pad->SetMargin(leftmargin, rightmargin, bottommargin, topmargin) ;
149 pad->SetBorderMode(bordermode) ;
154 pad->SetTickx(settickx) ;
155 pad->SetTicky(setticky) ;
176 gr->SetLineColor(linecolor) ;
177 gr->SetLineWidth(linewidth) ;
178 gr->SetLineStyle(linestyle) ;
184 gr->SetFillStyle(fillstyle) ;
185 gr->SetFillColor(fillcolor) ;
191 gr->SetMarkerStyle(markerstyle) ;
192 gr->SetMarkerColor(markercolor) ;
193 gr->SetMarkerSize(markersize) ;
198 float xlabelsize=0.05,
float xtitleoffset=1.4,
float xtitlesize=0.05,
199 float ylabelsize=0.05,
float ytitleoffset=1.4,
float ytitlesize=0.05)
201 gr->GetXaxis()->SetTitleSize(xtitlesize) ;
202 gr->GetXaxis()->SetTitleOffset(xtitleoffset) ;
203 gr->GetXaxis()->SetLabelSize(xlabelsize) ;
204 gr->GetYaxis()->SetTitleSize(ytitlesize) ;
205 gr->GetYaxis()->SetTitleOffset(ytitleoffset) ;
206 gr->GetYaxis()->SetLabelSize(ylabelsize) ;
211 int fillstyle=1001,
int fillcolor=0,
212 int markerstyle=20,
int markercolor=1,
int markersize=1,
213 float xlabelsize=0.05,
float xtitleoffset=1.4,
float xtitlesize=0.05,
214 float ylabelsize=0.05,
float ytitleoffset=1.4,
float ytitlesize=0.05)
225 gre->SetLineColor(linecolor) ;
226 gre->SetLineWidth(linewidth) ;
227 gre->SetLineStyle(linestyle) ;
233 gre->SetFillStyle(fillstyle) ;
234 gre->SetFillColor(fillcolor) ;
240 gre->SetMarkerStyle(markerstyle) ;
241 gre->SetMarkerColor(markercolor) ;
242 gre->SetMarkerSize(markersize) ;
247 float xlabelsize=0.05,
float xtitleoffset=1.4,
float xtitlesize=0.05,
248 float ylabelsize=0.05,
float ytitleoffset=1.5,
float ytitlesize=0.05)
250 gre->GetXaxis()->SetTitleSize(xtitlesize) ;
251 gre->GetXaxis()->SetTitleOffset(xtitleoffset) ;
252 gre->GetXaxis()->SetLabelSize(xlabelsize) ;
253 gre->GetYaxis()->SetTitleSize(ytitlesize) ;
254 gre->GetYaxis()->SetTitleOffset(ytitleoffset) ;
255 gre->GetYaxis()->SetLabelSize(ylabelsize) ;
260 int linestyle=1,
int linewidth=2,
int linecolor=1,
261 int fillstyle=1001,
int fillcolor=0,
262 int markerstyle=20,
int markercolor=1,
int markersize=1,
263 float xlabelsize=0.05,
float xtitleoffset=1.4,
float xtitlesize=0.05,
264 float ylabelsize=0.05,
float ytitleoffset=1.5,
float ytitlesize=0.05)
274 float xlabelsize=0.05,
float xtitleoffset=1.4,
float xtitlesize=0.05,
275 float ylabelsize=0.05,
float ytitleoffset=1.5,
float ytitlesize=0.05)
277 mg->GetXaxis()->SetTitleSize(xtitlesize) ;
278 mg->GetXaxis()->SetTitleOffset(xtitleoffset) ;
279 mg->GetXaxis()->SetLabelSize(xlabelsize) ;
280 mg->GetYaxis()->SetTitleSize(ytitlesize) ;
281 mg->GetYaxis()->SetTitleOffset(ytitleoffset) ;
282 mg->GetYaxis()->SetLabelSize(ylabelsize) ;
288 grae->SetLineColor(linecolor) ;
289 grae->SetLineWidth(linewidth) ;
290 grae->SetLineStyle(linestyle) ;
296 grae->SetFillStyle(fillstyle) ;
297 grae->SetFillColor(fillcolor) ;
303 grae->SetMarkerStyle(markerstyle) ;
304 grae->SetMarkerColor(markercolor) ;
305 grae->SetMarkerSize(markersize) ;
310 float xlabelsize=0.03,
float xtitleoffset=1.,
float xtitlesize=0.04,
311 float ylabelsize=0.03,
float ytitleoffset=1.,
float ytitlesize=0.04)
313 grae->GetXaxis()->SetTitleSize(xtitlesize) ;
314 grae->GetXaxis()->SetTitleOffset(xtitleoffset) ;
315 grae->GetXaxis()->SetLabelSize(xlabelsize) ;
316 grae->GetYaxis()->SetTitleSize(ytitlesize) ;
317 grae->GetYaxis()->SetTitleOffset(ytitleoffset) ;
318 grae->GetYaxis()->SetLabelSize(ylabelsize) ;
323 int linestyle=1,
int linewidth=2,
int linecolor=1,
324 int fillstyle=1001,
int fillcolor=0,
325 int markerstyle=20,
int markercolor=1,
int markersize=1,
326 float xlabelsize=0.03,
float xtitleoffset=1.,
float xtitlesize=0.04,
327 float ylabelsize=0.03,
float ytitleoffset=1.,
float ytitlesize=0.04)
337 float xlabelsize=0.04,
float xtitleoffset=1.,
float xtitlesize=0.04,
338 float ylabelsize=0.04,
float ytitleoffset=1.,
float ytitlesize=0.04)
340 hstack->GetXaxis()->SetTitleSize(xtitlesize) ;
341 hstack->GetXaxis()->SetTitleOffset(xtitleoffset) ;
342 hstack->GetXaxis()->SetLabelSize(xlabelsize) ;
343 hstack->GetYaxis()->SetTitleSize(ytitlesize) ;
344 hstack->GetYaxis()->SetTitleOffset(ytitleoffset) ;
345 hstack->GetYaxis()->SetLabelSize(ylabelsize) ;
int SetGraphAxisAttributes(TGraph *gr, float xlabelsize=0.05, float xtitleoffset=1.4, float xtitlesize=0.05, float ylabelsize=0.05, float ytitleoffset=1.4, float ytitlesize=0.05)
int SetGraphErrorsFillAttributes(TGraph *gre, int fillstyle=1001, int fillcolor=0)
int SetMGraphAttributes(TMultiGraph *mg, float xlabelsize=0.05, float xtitleoffset=1.4, float xtitlesize=0.05, float ylabelsize=0.05, float ytitleoffset=1.5, float ytitlesize=0.05)
int SetGraphAsymmErrorsAttributes(TGraphAsymmErrors *grae, int linestyle=1, int linewidth=2, int linecolor=1, int fillstyle=1001, int fillcolor=0, int markerstyle=20, int markercolor=1, int markersize=1, float xlabelsize=0.03, float xtitleoffset=1., float xtitlesize=0.04, float ylabelsize=0.03, float ytitleoffset=1., float ytitlesize=0.04)
int SetGraphErrorsAxisAttributes(TGraph *gre, float xlabelsize=0.05, float xtitleoffset=1.4, float xtitlesize=0.05, float ylabelsize=0.05, float ytitleoffset=1.5, float ytitlesize=0.05)
int SetPadFillAttributes(TPad *pad, int fillstyle=0, float fillcolor=0)
int SetGraphLineAttributes(TGraph *gr, int linestyle=1, int linewidth=2, int linecolor=1)
int SetGraphErrorsAttributes(TGraphErrors *gre, int linestyle=1, int linewidth=2, int linecolor=1, int fillstyle=1001, int fillcolor=0, int markerstyle=20, int markercolor=1, int markersize=1, float xlabelsize=0.05, float xtitleoffset=1.4, float xtitlesize=0.05, float ylabelsize=0.05, float ytitleoffset=1.5, float ytitlesize=0.05)
int SetGraphAsymmErrorsLineAttributes(TGraphAsymmErrors *grae, int linestyle=1, int linewidth=2, int linecolor=1)
int SetGraphAttributes(TGraph *gr, int linestyle=1, int linewidth=2, int linecolor=1, int fillstyle=1001, int fillcolor=0, int markerstyle=20, int markercolor=1, int markersize=1, float xlabelsize=0.05, float xtitleoffset=1.4, float xtitlesize=0.05, float ylabelsize=0.05, float ytitleoffset=1.4, float ytitlesize=0.05)
int SetGraphAsymmErrorsMarkerAttributes(TGraphAsymmErrors *grae, int markerstyle=20, int markercolor=1, int markersize=1)
int SetGraphErrorsMarkerAttributes(TGraph *gre, int markerstyle=20, int markercolor=1, int markersize=1)
int SetGraphFillAttributes(TGraph *gr, int fillstyle=1001, int fillcolor=0)
int SetHistFillAttributes(TH1F *hist, int fillstyle=1001, int fillcolor=0)
int SetHistMarkerAttributes(TH1F *hist, int markerstyle=20, int markercolor=1, int markersize=1)
int SetPadAttributes(TPad *pad, int fillstyle=0, int fillcolor=0, float leftmargin=0.15, float rightmargin=0.05, float bottommargin=0.15, float topmargin=0.05, int bordermode=0, bool logx=false, bool logy=true, bool settickx=true, bool setticky=true)
int SetHStackAttributes(THStack *hstack, float xlabelsize=0.04, float xtitleoffset=1., float xtitlesize=0.04, float ylabelsize=0.04, float ytitleoffset=1., float ytitlesize=0.04)
int SetGraphErrorsLineAttributes(TGraphErrors *gre, int linestyle=1, int linewidth=2, int linecolor=1)
int SetHistAxisAttributes(TH1F *hist, float xlabelsize=0.05, float xtitleoffset=1.4, float xtitlesize=0.05, float ylabelsize=0.05, float ytitleoffset=1.4, float ytitlesize=0.05)
int SetGraphMarkerAttributes(TGraph *gr, int markerstyle=20, int markercolor=1, int markersize=1)
int SetGraphAsymmErrorsAxisAttributes(TGraphAsymmErrors *grae, float xlabelsize=0.03, float xtitleoffset=1., float xtitlesize=0.04, float ylabelsize=0.03, float ytitleoffset=1., float ytitlesize=0.04)
int SetGraphAsymmErrorsFillAttributes(TGraphAsymmErrors *grae, int fillstyle=1001, int fillcolor=0)
int SetHistLineAttributes(TH1F *hist, int linestyle=1, int linewidth=2, int linecolor=1)
int SetHistAttributes(TH1F *hist, int linestyle=1, int linewidth=2, int linecolor=1, int fillstyle=1001, int fillcolor=0, int markerstyle=20, int markercolor=1, int markersize=1, float xlabelsize=0.05, float xtitleoffset=1.4, float xtitlesize=0.05, float ylabelsize=0.05, float ytitleoffset=1.4, float ytitlesize=0.05, bool displaystats=false)