def barv(d, plt, title=None, rotation='<STR_LIT>'):
labels = sorted(d, key=d.get, reverse=True)<EOL>index = range(len(labels))<EOL>plt.xticks(index, labels, rotation=rotation)<EOL>plt.bar(index, [d[v] for v in labels])<EOL>if title is not None:<EOL><INDENT>plt.title(title)<EOL><DEDENT>
A convenience function for plotting a vertical bar plot from a Counter