Skip to content

Commit

Permalink
add slight variant to simple.py
Browse files Browse the repository at this point in the history
  • Loading branch information
amueller committed Aug 18, 2015
1 parent 9aaf533 commit 813b3f2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions examples/simple.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,10 @@
# Open a plot of the generated image.
plt.imshow(wordcloud)
plt.axis("off")

# take relative word frequencies into account, lower max_font_size
wordcloud = WordCloud(max_font_size=40, relative_scaling=.5).generate(text)
plt.figure()
plt.imshow(wordcloud)
plt.axis("off")
plt.show()

0 comments on commit 813b3f2

Please sign in to comment.