erdogant / pca

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

Issue with biplot labels colour after new PCA installation using pip #44

Closed rejusam closed 1 year ago

rejusam commented 1 year ago

I noticed that after installing a new version of PCA using pip, the biplot is not generating unique and important feature labels in green, and weak and/or non-unique features labels in yellow. Would you happen to know what could be causing this issue?

erdogant commented 1 year ago

True. This functionality was lost. I created a new version and restored and improved this functionality. update to the latest version with pip install -U -pca

See details to control the arrows here. Also look in the docstrings for more information.

In general, there is more control over the arrows now using the arrowdict parameter, such as coloring on strength: model.biplot(arrowdict={'color_strong': 'r', 'color_weak': 'g'})

But this is enabled by default now and you do not need to specify it. Change it accordingly.