2014-02-24 60 views
0

我已經使用python生成了散點圖。查找圖中點的座標

如何找出一個點的座標?

from matplotlib import pyplot as plt 

x = [min(max(L2.real, 0.2), 0.3) for L2 in L]  

y = [min(max(L2.imag, 0), 0.004) for L2 in L] 

plt.scatter(x, y) 

plt.show() 
+0

不確定你在問什麼。你可以用'zip(x,y)'得到所有x/y對的列表。 –

+0

是的,x和y是座標 – Will

+1

或者您是否想用鼠標在圖中選擇一個點並將座標顯示在圖中? –

回答

0

第i點的座標是(x[i], y[i])。你在問什麼?