--- UserCode/GPetrucc/scripts/plotAll.py 2009/05/26 15:24:27 1.3 +++ UserCode/GPetrucc/scripts/plotAll.py 2009/06/30 10:01:45 1.4 @@ -24,10 +24,11 @@ for v in [ v for k,v in optlist if k == for v in [ v for k,v in optlist if k == "-d"]: (name,allsubplots) = v.split("=") diffs[name] = allsubplots.split(",") -cols = [1,2,4,209,6,8] +cols = [1,4,2,209,6,8] print "color: ",cols -markers = [8 , 21, 29, 24, 25, 27, 28] -markersizes = [2.1,1.1,2.5,1.5,1.5,1.5,1.5] +markers = [8 , 29, 21, 24, 25, 27, 28] +markersizes = [2.1,2.5,1.1,1.5,1.5,1.5,1.5] +legendYup = .30# .98 styles=[] for v in [ v for k,v in optlist if k == "-S"]: @@ -97,7 +98,7 @@ def goPlot(file,fbase,prefix=""): print "Wrote %s/%s.png" % (fbase,plotname) c1.Print("%s/%s.png" % (fbase,plotname)) for name,subs in stacks.items(): - legend = ROOT.TLegend(.65,.98-0.04*len(subs),.98,.99) + legend = ROOT.TLegend(.60,legendYup-0.04*len(subs),.96,legendYup+.01) legend.SetTextFont(42); legend.SetTextSize(0.04); legend.SetFillColor(0); o = theseitems[subs[0]]; i = -1 if styles != []: setStyle(o) @@ -117,7 +118,7 @@ def goPlot(file,fbase,prefix=""): for name,subs in diffs.items(): c1.cd(); toplot = [] - legend = ROOT.TLegend(.65,.98-0.04*len(subs),.98,.99) + legend = ROOT.TLegend(.60,legendYup-0.04*len(subs),.96,legendYup+.01) legend.SetTextFont(42); legend.SetTextSize(0.04); legend.SetFillColor(0); o0 = theseitems[subs[0]].Clone(); for b in range(0, o0.GetNbinsX()+2): o0.SetBinError(b, 0.0)