plt.xticks(y_pos, bars) code example Example: change xticks python plt.xticks(np.arange(0,10),np.arange(10,20))