, ax.bar, ( ). , script, - xticks xticklabels, .
, matplotlib.artist, . , , . , 5 10 , - . , .
ax.set_xticks(ind+width/2) , , lab ax.set_xticklabels(lab).
import numpy as np
import matplotlib.pyplot as plt
from itertools import cycle, islice
import matplotlib.ticker as mtick
menMeans = (8092, 812, 2221, 1000, 562)
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()
