ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/GPetrucc/scripts/plotAll.py
(Generate patch)

Comparing UserCode/GPetrucc/scripts/plotAll.py (file contents):
Revision 1.3 by gpetrucc, Tue May 26 15:24:27 2009 UTC vs.
Revision 1.4 by gpetrucc, Tue Jun 30 10:01:45 2009 UTC

# Line 24 | Line 24 | for v in [ v for k,v in optlist if k ==
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"]:
# Line 97 | Line 98 | def goPlot(file,fbase,prefix=""):
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)
# Line 117 | Line 118 | def goPlot(file,fbase,prefix=""):
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)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines