20 lines
501 B
Python
20 lines
501 B
Python
#!/usr/bin/env python3
|
|
|
|
from wordcloud import WordCloud
|
|
import matplotlib.pyplot as plt
|
|
|
|
LANGUAGES = ["C", "C++", "Java", "JavaScript", "Python", "OCaml", "HTML", "CSS", "PHP"]
|
|
|
|
wordcloud = WordCloud(width=800, height=400, background_color='white').generate_from_frequencies(
|
|
{lang: 1 for lang in LANGUAGES})
|
|
|
|
plt.figure(figsize=(10, 8), facecolor=None)
|
|
plt.imshow(wordcloud)
|
|
# plt.title("Programming Languages")
|
|
plt.axis("off")
|
|
# plt.show()
|
|
plt.savefig("programming_languages.png")
|
|
plt.close()
|
|
|
|
|