2 from plot_times
import times
6 from collections
import defaultdict
10 print(
'Please supply an input file name stub to glob on the command line, and an output file name')
16 if not outname.endswith(
'.pdf'): outname +=
'.pdf'
19 print(
'glob found %d files: %s for stub %s' % (len(fns),
str(fns), stub))
21 print(
'no files found for stub', stub)
25 print(
'processing ', fn)
35 x = [t
for t
in toks
if t.startswith(
'b')][0]
41 print(
'plotting', fn_list)
43 tot_times = [
get_tot(fn)
for fn
in fn_list]
44 n_bkgd = [
get_nbkgd(fn)
for fn
in fn_list]
46 pl.plot(n_bkgd, tot_times, marker, label=label)
48 fn_types = defaultdict(list)
52 key = [k
for k
in key
if k.startswith(
'j')]
56 markers = itertools.cycle((
'ro',
'bo'))
59 for k, v
in fn_types.items():
64 for k, v
in fn_types.items():
70 pl.suptitle(outname[:-4])
71 pl.xlabel(
'n background')
72 pl.ylabel(
'tot exec time 1000 events (ns)')