我有这样的图形显示以下内容:的Python matplotlib - 设定x轴刻度
plt.plot(valueX, scoreList)
plt.xlabel("Score number") # Text for X-Axis
plt.ylabel("Score") # Text for Y-Axis
plt.title("Scores for the topic "+progressDisplay.topicName)
plt.show()
valueX = [1,2,3,4]和 得分列表= [5,0,0,2]
无论'scoreList'中有什么值,我都希望比例尺在1上升。目前让我的x轴向上以.5而不是1秒。
如何设置它使其仅在1上升?
真棒,谢谢你! – YusufChowdhury