from itertools import count
prefixes = {'aa': 4, 'ca': 6, 'ja': 9, 'du': 10, 'zz': 1}
bar(*zip(*zip(count(), list(prefixes.values()))))
xticks(*zip(*zip(count(0.4), prefixes)))
Histogram of common string prefixes