import numpy as np
import matplotlib.pyplot as plt
feb = [64, 68, 102, 133, 189]
mar = [59, 85, 113, 106, 171]
N = len(feb)
ind = np.arange(N)
width = .35
fig, ax = plt.subplots()
rects1 = ax.bar(ind, feb, width, color='b')
rects2 = ax.bar(ind + width, mar, width, color='r')
ax.set_ylabel('price')
ax.set_title('title')
ax.set_xticks(ind + width / 2)
ax.set_xticklabels(('studio', '1r', '2r', '3r', '4r'))
ax.legend((rects1[0], rects2[0]), ('feb', 'mar'))
ax.yaxis.grid(True)
plt.show()