71 |
|
if match != None and match.search(k.GetName()) == None: continue |
72 |
|
print "Got",k.GetName(),"of type",t |
73 |
|
if t.find("TH2") != -1: |
74 |
+ |
c1.cd() |
75 |
|
o.Draw("COLZ") |
76 |
|
elif t.find("TH1") != -1: |
77 |
+ |
c1.cd() |
78 |
|
if styles != []: setStyle(o) |
79 |
|
o.Draw() |
80 |
|
if yaxis != None: |
89 |
|
print "Wrote %s/%s.png" % (fbase,k.GetName()) |
90 |
|
c1.Print("%s/%s.png" % (fbase,k.GetName())) |
91 |
|
for name,subs in stacks.items(): |
92 |
< |
legend = ROOT.TLegend(.70,.98-0.04*len(subs),.98,.99) |
92 |
> |
legend = ROOT.TLegend(.65,.98-0.04*len(subs),.98,.99) |
93 |
|
legend.SetTextFont(42); legend.SetTextSize(0.04); legend.SetFillColor(0); |
94 |
|
o = theseitems[subs[0]]; i = -1 |
95 |
|
if styles != []: setStyle(o) |