collection.Counterで作った辞書を棒グラフでプロット[python]

f:id:Vastee:20190919152736p:plain
import collections
import matplotlib.pyplot as plt

l = ['a', 'b', 'b', 'b', 'c']
c = collections.Counter(l)
plt.bar(list(c.keys()), list(c.values()))
Pocket