📜  matplotlib 坐标轴标签 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:17.872000             🧑  作者: Mango

代码示例2
ticks = [0, 1, 2]
labels = ["a", "b", "c"]

plt.figure()
plt.xticks(ticks, labels)
plt.show()