Xticks matplotlib

ax.set_xticks(np.arange(len(data)))
ax.set_xticklabels(labels)
Difficult Dormouse