erdogant / pca

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

customizing marker shape #42

Closed HeldLab closed 1 year ago

HeldLab commented 1 year ago

Really nice, easy to use package. Thanks for putting it together!

I did want to ask if it was possible to bring a second column of annotations (in addition to the 'y' you use as convention), in order to customize the marker shape. I suspect not based on the API, but it would be a great enhancement in the future.

Cheers, Jason

erdogant commented 1 year ago

Thank you. I added the functionality! Update with pip install -U pca See documentation pages for more details.

In case you are wondering how you can thank me for this great new functionality, I love coffee ;-)

Buy Me a Coffee at ko-fi.com

HeldLab commented 1 year ago

Is it possible to encode the marker shape using strings instead of numbers? For example if the results are coming from 2 datasets, and you want to have a shape for each dataset and in a legend label one shape "dataset A" and the other "dataset B"?

Cheers, Jason

erdogant commented 1 year ago

Yes. I entirely rewritten the plotting functionalties and includes this function too! update to the latest version with: pip install -U pca More information can be found here

erdogant commented 1 year ago

I am closing this one as the functionality is created.