0
我想在散點圖註釋兩分,但由於過度擁擠的性質,它們變得很難看。箭頭標註matplotlib
反正我可以把箭頭或指向點問題,但在詮釋空白的名字從聚類的觀測遠指針?
plt.scatter(afb[:,0], afb[:,1], c="yellow")
plt.title("Arrow Scatter", weight="bold", fontsize=20)
plt.annotate("James", (a[812,0], a[812,1]))
plt.annotate("Jane", (a[1067,0], a[1067,1]))
plt.ylabel("2", fontsize=16)
plt.xlabel("1", fontsize=16)
plt.show()
感謝