N = len(menMeans)
lab = ['Google', 'MSFT', 'APPL', 'EXXON', 'WMRT']
ind = np.arange(N)
width = 0.35
fig, ax = plt.subplots()
my_colors = list(islice(cycle(['b', 'r', 'g', 'y', 'k']), None, N))
rects1 = ax.bar(ind, menMeans, width, color=my_colors, label=lab)
ax.set_ylabel('Count')
ax.set_title('Trending words and their counts')
plt.xticks(rotation=90)
ax.set_xticks(ind + width / 2)
ax.set_xticklabels(lab)
plt.show()
python matplotlib legend shows first entry of a list only