erdogant / pca

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

Unable turn off the default plot title of `biplot()`. #37

Closed rejusam closed 1 year ago

rejusam commented 1 year ago

How do I remove the default plot title of biplot()? I tried using the title parameter of the biplot() function, but I'm still unable to remove the default plot title. fig, ax = model.biplot(label=True, legend=False, cmap = 'autumn', figsize=(15,10), title= None) I also tried to modify the returned axis of biplot(): ax.set_title(' ', loc='center') but it is not modifying the title.

erdogant commented 1 year ago

I see why this is confusing. The idea was as follows:

        title : str, default: None
            None: Automatically create title text based on results.
            '' : Remove all title text.
            'title text' : Add custom title text.

I updated the docstrings. I am open for alternative solutions.

rejusam commented 1 year ago

Thank You @erdogant