plt.bar(x, y, width=30)

Read more of this post