Word Cloud
Sustainable Living
Eco-friendly lifestyle vocabulary
Output
Python
import matplotlib.pyplot as plt
from wordcloud import WordCloud
text = """Sustainable Living Zero Waste Minimalism Declutter Simple Life
Reusable Refill Bulk Shop Local Farmers Market Organic Natural
Plant Based Vegan Vegetarian Meatless Monday Flexitarian Diet
Compost Garden Urban Farming Permaculture Native Plants Pollinators
Secondhand Thrift Vintage Upcycle Repair Mend Quality Over Quantity
Carbon Footprint Offset Flight Shame Train Travel Bike Walk Public
Solar Panels Rain Barrel LED Energy Efficient Smart Thermostat"""
def earth_green(word, font_size, position, orientation, random_state=None, **kwargs):
colors = ['#166534', '#15803d', '#22c55e', '#4ade80', '#14532d']
return colors[hash(word) % len(colors)]
wordcloud = WordCloud(
width=1200, height=600,
background_color='#ffffff',
color_func=earth_green,
max_words=75,
max_font_size=130,
min_font_size=10,
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
☕