Word Cloud
Parenting Family Cloud
Family and parenting vocabulary
Output
Python
import matplotlib.pyplot as plt
from wordcloud import WordCloud
text = """Parenting Family Kids Children Baby Toddler Preschool School
Mom Dad Parent Guardian Grandparent Sibling Cousin Aunt Uncle Family
Milestone Development Growth Learning Play Imagination Creativity Art
Bedtime Routine Schedule Meal Snack Healthy Nutrition Picky Eater
Tantrum Patience Discipline Gentle Positive Boundaries Consistency
Quality Time Activities Outdoor Nature Park Playground Sports Music
Education Homework Reading Books Screen Time Digital Balance Safety"""
def family_rose(word, font_size, position, orientation, random_state=None, **kwargs):
colors = ['#be185d', '#db2777', '#ec4899', '#f472b6', '#9d174d']
return colors[hash(word) % len(colors)]
wordcloud = WordCloud(
width=1200, height=600,
background_color='#ffffff',
color_func=family_rose,
max_words=75,
max_font_size=125,
min_font_size=11,
relative_scaling=0.5
).generate(text)
fig, ax = plt.subplots(figsize=(12, 6), facecolor='#ffffff')
ax.imshow(wordcloud, interpolation='bilinear')
ax.axis('off')
plt.tight_layout(pad=0)
plt.show()
Library
Matplotlib
Category
Text Visualization
More Word Cloud examples
☕