How can I remove arrow labels on a PCA biplot in Python and place them outside the figure?

81 Views Asked by At

I am plotting pcaplots and biplots and I would like to remove the labels on the arrow and place them outside the figure. I would appreciate any help with this.

This is what I have tried so far: cluster.biplot(cscore=pca_scores, loadings=loadings, labels=new_df1.columns.values, var1=round(pca.explained_variance_ratio_[0]*100, 2), var2=round(pca.explained_variance_ratio_[1]*100, 2)) ax.legend(loc='center left')

and this is what i get: enter image description here

but I need something like this where the labels are neatly arranged:

enter image description here

0

There are 0 best solutions below