6import matplotlib.pyplot
as plt
17if __name__ ==
"__main__":
18 parser = argparse.ArgumentParser(description=
"""
19Peano 4 statistics inspection
21Find out which columns in a statistics file have which meaning. The resulting
22index can then be used with plot-statistics.py.
25 parser.add_argument(
"file", help=
"filename of examine")
26 args = parser.parse_args()
28 print(
"Column \t| Counter" )
29 print(
"--------|----------------" )
30 input_file = open( args.file,
"r" )
31 for line
in input_file:
32 if line.startswith(
"#" ):
36 for token
in line.split(
","):
38 print(
"{}\t| time (always used to plot)".format( column_index ) )
40 print(
"{}\t| {}".format( column_index, token ) )