SCRIPT WORDCLOUD ON PYTHON
#1 Import Libraries
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
%matplotlib inline
from wordcloud import WordCloud
#2 Text
text1 = "ISI BIDANG INI DENGAN TEKS KALIAN"#Usahakan text panjang, tapi jika text pendek pun tidak apa2
#2 Text
text1 = "ISI BIDANG INI DENGAN TEKS KALIAN"
#Usahakan text panjang, tapi jika text pendek pun tidak apa2
#3 WordCloud
word_cloud1 = WordCloud(collocations = False, background_color = 'white', width = 2048, height = 1080).generate(text1)
#Save Imageword_cloud1.to_file('got.png')
#3 WordCloud
word_cloud1 = WordCloud(collocations = False, background_color = 'white',
width = 2048, height = 1080).generate(text1)
#Save Image
word_cloud1.to_file('got.png')
#4 Display WordCloud
plt.imshow(word_cloud1, interpolation='bilinear')plt.axis("off")plt.show()
#4 Display WordCloud
plt.imshow(word_cloud1, interpolation='bilinear')
plt.axis("off")
plt.show()
Hasilnya gimana bang?
Nahh, ini dia hasilnya, check it out broh
Ciao~ @GTx
Ciao~ @GTx