Created
May 22, 2022 19:10
-
-
Save YHaruoka/d061a20d3139d6f16b6f27cf47c6dcf1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from wordcloud import WordCloud | |
import matplotlib.pyplot as plt | |
text = WordCloud.__doc__ | |
wordcloud = WordCloud().generate(text) | |
wordcloud.to_file("word_cloud_result.png") | |
plt.imshow(wordcloud) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment