def format_histogram_one_count(counts, bin_edges):
 lines = []
 lines.append('Length DCTB Count')
 for (edge, count) in zip(bin_edges, counts):
  lines.append(' DCTB '.join(map(str, [edge, count])))
 return '\n'.join(lines)

def format_histogram_one_count ( counts , bin_edges ) : lines = [ ] lines . append ( 'Length DCTB Count' ) for ( edge , count ) in zip ( bin_edges , counts ) : lines . append ( ' DCTB ' . join ( map ( str , [ edge , count ] ) ) ) return '\n' . join ( lines )
returns text-formatted histogram with only one count .