Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- QV1 = plt.quiver(*origin, pca.components_[0,0], pca.components_[0,1], color=['blue'], scale=6.0)
- QV2 = plt.quiver(*origin, pca.components_[1,0], pca.components_[1,1], color=['black'], scale=6.0)
- leg = plt.legend([QV1, QV2], ["Principal Component 1", "Principal Component 2"])
- leg.legendHandles[0].set_color("blue")
- leg.legendHandles[1].set_color("black")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement