--- UserCode/GPetrucc/scripts/plotAll.py 2009/04/28 18:02:22 1.1 +++ UserCode/GPetrucc/scripts/plotAll.py 2009/05/13 15:35:56 1.2 @@ -71,8 +71,10 @@ for f in args: if match != None and match.search(k.GetName()) == None: continue print "Got",k.GetName(),"of type",t if t.find("TH2") != -1: + c1.cd() o.Draw("COLZ") elif t.find("TH1") != -1: + c1.cd() if styles != []: setStyle(o) o.Draw() if yaxis != None: @@ -87,7 +89,7 @@ for f in args: print "Wrote %s/%s.png" % (fbase,k.GetName()) c1.Print("%s/%s.png" % (fbase,k.GetName())) for name,subs in stacks.items(): - legend = ROOT.TLegend(.70,.98-0.04*len(subs),.98,.99) + legend = ROOT.TLegend(.65,.98-0.04*len(subs),.98,.99) legend.SetTextFont(42); legend.SetTextSize(0.04); legend.SetFillColor(0); o = theseitems[subs[0]]; i = -1 if styles != []: setStyle(o)