在下面的代码中,我想绘制4个象限。我想将原点设为0。由于所有这些值均为正,因此它们仅应出现在第一象限中。但是我没有得到所需的结果。我想绘制500个值,这些值也有一些负值。我只显示了一部分数据。我如何才能将这些值限制在第一象限内。
`#data
[[0.20077017, 0.26503062]
[0.23604931, 0.23830369]
[0.3413382 , 0.1511064 ]
[0.49108654 ,0.03759334]
[0.4908852, 0.03612228]
[0.48980197 ,0.03400265]
[0.49243385, 0.03560147]
[0.492753 , 0.03494545]
[0.49211517, 0.03319726]
[0.4918935 , 0.03200188]
[0.4953385 , 0.03440943]
[0.49811 , 0.03617451]])
c1 = data[:,0]
c2 = data[:,1]
ax.scatter(c1,c2)
ax.spines['left'].set_position('zero')
ax.spines['right'].set_position('none')
ax.spines['top'].set_position('none')
ax.spines['bottom'].set_position('zero')`