📜  matplotlib 轴标签 - Python 代码示例

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

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

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