Bug summary
I want to update the x-ticks label in a for loop with set_text, but it does not update the text.
Code for reproduction
import matplotlib.pyplot as plt
fig, axis = plt.subplots()
for t in axis.get_xticklabels():
t.set_text('a')
plt.show()
Actual outcome
Nothing happens with the xticklabels.

Expected outcome
I would expect all ticks on x-axis to be labeled 'a'. It works if I use t.set_y with the offset.
Additional information
No response
Operating system
No response
Matplotlib Version
3.8.4
Matplotlib Backend
No response
Python version
No response
Jupyter version
No response
Installation
None