Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: module 'matplotlib.cm' has no attribute 'get_cmap' #59

Open
amoschoomy opened this issue Sep 26, 2024 · 1 comment
Open

Comments

@amoschoomy
Copy link

AttributeError: module 'matplotlib.cm' has no attribute 'get_cmap' if i want to plot a biplot without the points

The error occurs on a matplotlib version >=3.9.0 after matplotlib updated their library. Can we get a dependency update on this?

@erdogant
Copy link
Owner

erdogant commented Dec 17, 2024

I could not reproduce the error. Can you demonstrate by example?

matplotlib.__version__
Out[9]: '3.10.0'

# Load pca
from pca import pca

# Initialize pca
model = pca(n_components=3)

# Load example data set
df = model.import_example(data='iris')

# Fit transform
results = model.fit_transform(df)

model.biplot(s=0, fontsize=0, labels=None)

I did find it. It is being deprecated in matplotlib in version > 3.10. So I updated the parts and this should remove the warning now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants