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

wordcloud not compatible with matplotlib 3.9.0 release on 16/05/2024 #765

Open
Bertin-fap opened this issue May 25, 2024 · 1 comment
Open

Comments

@Bertin-fap
Copy link

Description

in wordcloud.py line 106 should read self.colormap = plt .colormaps[colormap] with matplotlib 3.9.0

Steps/Code to Reproduce

Expected Results

Actual Results

Versions

@cvanelteren
Copy link

Facing same issue. Work around is to cast it to an array, e.g.

wc = WordCloud(width = 400, height = 400,
                   stopwords = stopwords).generate(ws)
axi.imshow(wc.to_array())

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