是否可以将 x 和 y 轴标签数字移动例如 +2?例如,我创建了这个图像,但我希望标签数字从 2 开始:
我的代码如下:
jacaardMatrix = 1.662887377173091485e-01 3.432835820895522305e-01 3.568320278503046006e-01
5.065963060686015651e-02 3.160270880361173984e-01 3.374888691006233121e-01
3.093987157034442520e-02 1.802120141342756221e-01 1.748178980228928259e-01
fig2=plt.figure()
plt.title("Radius and FRC Jacaard Values for Scoring System: "+str(i))
plt.xlabel('Radius')
plt.ylabel('FRC Size')
plt.imshow(jacaardMatrix)
plt.xticks(np.arange(-0.5, 3, 0.5), np.arange(2, 5.5, 0.5))
。 - ImportanceOfBeingErnest