Skip to content

Instantly share code, notes, and snippets.

@YHaruoka
Created May 22, 2022 19:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save YHaruoka/d061a20d3139d6f16b6f27cf47c6dcf1 to your computer and use it in GitHub Desktop.
Save YHaruoka/d061a20d3139d6f16b6f27cf47c6dcf1 to your computer and use it in GitHub Desktop.
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