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 |
|
|
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) |
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 |
|
|