plt.figure(1)
h = plt.bar(range(len(country_list)), heights, label=country_list)
plt.subplots_adjust(bottom=0.3)
xticks_pos = [(0.65 * patch.get_width() + patch.get_xy()[0]) for patch in h]
plt.xticks(xticks_pos, country_list, ha='right', rotation=45)
Matplotlib Python Barplot: Position of xtick labels have irregular spaces between eachother