erdogant / pca

pca: A Python Package for Principal Component Analysis.
https://erdogant.github.io/pca
MIT License
286 stars 43 forks source link

Overlapping annotations / text in the biplot() function #33

Closed rejusam closed 1 year ago

rejusam commented 1 year ago

When we create a biplot with the biplot() function, the labels of the variable names overlap for the variables with the same eigenvector. An example of this can be found below: https://drive.google.com/file/d/1OuzXq1NvLU3qBknbmdi0kzPvheZwt_Aq/view?usp=share_link

erdogant commented 1 year ago

I created an update where I incorporated the adjust_text library to prevent overlapping annotations in the biplot. Please update to the latest version >= v1.8.4.

pip install -U pca

Can you check whether this solves your issue?

rejusam commented 1 year ago

Awesome! Perfect! Thank you!