📜  python 绘图轴标签 - Python 代码示例

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

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

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