Word Cloud

Education Keywords Light

Educational terms and concepts

Output
Education Keywords Light
Python
import matplotlib.pyplot as plt
from wordcloud import WordCloud

text = """Education Learning Teaching School University College
Student Teacher Professor Curriculum Syllabus Course Lecture
Online Learning E-Learning MOOC Coursera Udemy EdTech LMS
Assessment Exam Quiz Assignment Project Thesis Dissertation
Graduation Degree Bachelor Master PhD Certificate Diploma
STEM Science Technology Engineering Mathematics Arts Humanities
Library Research Academic Journal Publication Peer Review Citation"""

def warm_orange(word, font_size, position, orientation, random_state=None, **kwargs):
    colors = ['#c2410c', '#ea580c', '#f97316', '#fb923c', '#fdba74']
    return colors[hash(word) % len(colors)]

wordcloud = WordCloud(
    width=1000, height=600,
    background_color='#ffffff',
    color_func=warm_orange,
    max_words=70,
    max_font_size=105,
    min_font_size=12,
    relative_scaling=0.55
).generate(text)

fig, ax = plt.subplots(figsize=(10, 6), facecolor='#ffffff')
ax.imshow(wordcloud, interpolation='bilinear')
ax.axis('off')
ax.set_title('Education & Learning', color='#1f2937', fontsize=16, fontweight='bold', pad=10)
plt.tight_layout(pad=1)
plt.show()
Library

Matplotlib

Category

Text Visualization

Did this help you?

Support PyLucid to keep it free & growing

Support