24 |
|
for v in [ v for k,v in optlist if k == "-d"]: |
25 |
|
(name,allsubplots) = v.split("=") |
26 |
|
diffs[name] = allsubplots.split(",") |
27 |
< |
cols = [1,2,4,209,6,8] |
27 |
> |
cols = [1,4,2,209,6,8] |
28 |
|
print "color: ",cols |
29 |
< |
markers = [8 , 21, 29, 24, 25, 27, 28] |
30 |
< |
markersizes = [2.1,1.1,2.5,1.5,1.5,1.5,1.5] |
29 |
> |
markers = [8 , 29, 21, 24, 25, 27, 28] |
30 |
> |
markersizes = [2.1,2.5,1.1,1.5,1.5,1.5,1.5] |
31 |
> |
legendYup = .30# .98 |
32 |
|
|
33 |
|
styles=[] |
34 |
|
for v in [ v for k,v in optlist if k == "-S"]: |
98 |
|
print "Wrote %s/%s.png" % (fbase,plotname) |
99 |
|
c1.Print("%s/%s.png" % (fbase,plotname)) |
100 |
|
for name,subs in stacks.items(): |
101 |
< |
legend = ROOT.TLegend(.65,.98-0.04*len(subs),.98,.99) |
101 |
> |
legend = ROOT.TLegend(.60,legendYup-0.04*len(subs),.96,legendYup+.01) |
102 |
|
legend.SetTextFont(42); legend.SetTextSize(0.04); legend.SetFillColor(0); |
103 |
|
o = theseitems[subs[0]]; i = -1 |
104 |
|
if styles != []: setStyle(o) |
118 |
|
for name,subs in diffs.items(): |
119 |
|
c1.cd(); |
120 |
|
toplot = [] |
121 |
< |
legend = ROOT.TLegend(.65,.98-0.04*len(subs),.98,.99) |
121 |
> |
legend = ROOT.TLegend(.60,legendYup-0.04*len(subs),.96,legendYup+.01) |
122 |
|
legend.SetTextFont(42); legend.SetTextSize(0.04); legend.SetFillColor(0); |
123 |
|
o0 = theseitems[subs[0]].Clone(); |
124 |
|
for b in range(0, o0.GetNbinsX()+2): o0.SetBinError(b, 0.0) |