Python Everyday 68: WordCloud

Table of Content

Today, I will show how to create a word cloud based on a .txt file and an image. In this sample, we use the fiction to generate the word cloud, and use a fight club image to get the color scheme. The output image as shown as follow:


Now, here is the code, try it.