[Python] How to Change the Word Color in the Word Cloud Generated by the wordcloud Package
wordcloud
is a famous python package to generate word cloud. Today I want to record how to change the word color in the word cloud generated by this package.
wordcloud
is a famous python package to generate word cloud. Today I want to record how to change the word color in the word cloud generated by this package.
matplotlib
is a famous python plot package and most of user used it to process the image.
But when I using matploblib
package to plot a image, I do not like the white border of my plot image.
wordcloud
is a famous python package to generate word cloud. I also record about how to use the package to make a word cloud, but today I have further studied the setting of wordcloud
according to different picture masks to generate different shapes of word clouds, and even control the color of the word cloud.
Today, when I re-used the package "GoogleNews" in Python that can automatically return search results (you can refer to [Python] Using "GoogleNews" package to get the Google News that I wrote before), it may be because I upgraded this package The version of, there is no problem in the English search, but the search result in the Chinese search is not returned, and there is no error.
Read More »[Solved] (2020/04/23 Updated) Python GoogleNews can not Return Chinese Search ResultsOn my laptop keyboard, F11 and F12 are shortcut keys to change the screen brightness, just like the picture:
Read More »[Linux] Solution to the invalid shortcut key for changing the brightness of laptop screenIn python, If we want to split a text with a specific character, and save the sub-paragraphs in the List data type, we can use split()
function to do it simply.
Last Updated on 2021-07-08 by Clay
For a long time, I want to write an article about crawlers, recording the regular expression, IP settings, user agent... etc. often used tools or some knowledge.
Read More »[Python] Use Selenium package to crawl the google search engineFor a long time, I have felt that the sorting and colors of the files displayed in the terminal are not really beautiful. I am always wondering if there is a good method can color the files in the terminal and sort them according to the file extensions.
Read More »[Linux] Use "ls" command to display different colors and orders according to different file extensionsAll the time unless I just want to write a simple test, or a single script, statistical program... I have always created a python virtual environment for the project I am developing.
Read More »[Python] How to Build a Python Virtual Environment in a FolderWhen we using Vim editor to edit our text/program file, if we can copy and paste to outside environment, it is very convenient.
Read More »[Linux] Copy Text from Vim Editor to System Clipboard