📅  最后修改于: 2022-03-11 14:45:31.246000             🧑  作者: Mango
import matplotlib.pyplot as plt
fig, ax = plt.subplots()
labels = [item.get_text() for item in ax.get_xticklabels()]
labels[1] = 'Testing'
ax.set_xticklabels(labels)