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

Comparing UserCode/RootMacros/overlayHists.py (file contents):
Revision 1.5 by klukas, Thu Nov 19 21:06:14 2009 UTC vs.
Revision 1.6 by klukas, Fri Nov 20 20:16:30 2009 UTC

# Line 77 | Line 77 | def main():
77          parser.print_help()
78          sys.exit(0)
79      process_directory("", files)
80 +    print
81      if options.ext == "pdf":
82 +        print "Writing merged pdf..."
83          os.system("gs -q -dBATCH -dNOPAUSE -sDEVICE=pdfwrite "
84                    "-dAutoRotatePages=/All "
85                    "-sOutputFile=%s.pdf " % options.output +
86                    "[0-9][0-9][0-9].pdf")
87          os.system("rm [0-9]*.pdf")
86    print "Wrote %i plots to %s" % (next_counter() - 1, options.output)
88  
89  
90  
# Line 124 | Line 125 | def process_directory(path, files):
125                  hist.SetTitle(file.name)
126                  color = colors[i % len(colors)]
127                  hist.SetLineColor(color)
128 <                hist.SetMarkerColor(color)
129 <                hist.SetMarkerStyle(i + 1)
128 >                ## hist.SetMarkerColor(color)
129 >                ## hist.SetMarkerStyle(i + 1)
130                  if "Norm" in name or options.normalize:
131                      integral = hist.Integral()
132                      hist.Scale(1. / integral)
# Line 141 | Line 142 | def process_directory(path, files):
142              if options.ext == "pdf":
143                  c1.SaveAs("%.3i.pdf" % counter)
144              c1.SaveAs("%s/%s/%s.%s" % (plot_dir, path, name, options.ext))
145 +            print "\r%i plots written to %s" % (counter, options.output),
146 +            sys.stdout.flush()
147              
148  
149  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines