인프런 - 강의/청와대 청원 데이터 시각화
12 - wordcloud 그림그리기
----___<<<<<
2020. 3. 4. 21:12
일단 conda install -c conda-forge wordcloud 로 설치하시고
import matplotlib.pyplot as plt
from wordcloud import WordCloud
text = open('us.txt').read()
wordcloud = WordCloud().generate(text)
plt.figure(figsize=(12,12))
plt.imshow(wordcloud, interpolation = "bilinear")
plt.axis("off")
plt.show()
--참조
https://amueller.github.io/word_cloud/auto_examples/masked.html#sphx-glr-auto-examples-masked-py