You can use 'set_xticklabels()' to change those tick numbers to your desired values. See the following example.
import numpy as npimport matplotlib.pyplot as pltfrom textwrap import wrapy = [2.6,3.5,1.8,2.4,3.9]x = np.arange(len(y))fig, ax = plt.subplots()title = 'Test Plot'ax.plot(x,y)ax.set_xticks(x)ax.set_xticklabels(['aa','bb','cc','dd','ee'])plt.title(title, fontsize=13)plt.show()
import numpy as np
import matplotlib.pyplot as plt
from textwrap import wrap
y = [2.6,3.5,1.8,2.4,3.9]
x = np.arange(len(y))
fig, ax = plt.subplots()
title = 'Test Plot'
ax.plot(x,y)
ax.set_xticks(x)
ax.set_xticklabels(['aa','bb','cc','dd','ee'])
plt.title(title, fontsize=13)
plt.show()