Word Cloud

Sustainability Keywords

Environmental and sustainability terms

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

text = """Sustainability Environment Climate Change Carbon Footprint
Renewable Energy Solar Wind Hydro Geothermal Biomass Nuclear
Green Energy Clean Tech Electric Vehicle EV Battery Storage Grid
Recycling Waste Management Circular Economy Reduce Reuse Recycle
Biodegradable Compost Organic Natural Eco Friendly Sustainable
Conservation Ecosystem Biodiversity Wildlife Protection Habitat
Net Zero Emissions Carbon Neutral Offset Credits ESG SDG Goals"""

def forest_green(word, font_size, position, orientation, random_state=None, **kwargs):
    colors = ['#15803d', '#16a34a', '#22c55e', '#4ade80', '#166534']
    return colors[hash(word) % len(colors)]

wordcloud = WordCloud(
    width=1000, height=600,
    background_color='#ffffff',
    color_func=forest_green,
    max_words=75,
    max_font_size=110,
    min_font_size=11,
    relative_scaling=0.5
).generate(text)

fig, ax = plt.subplots(figsize=(10, 6), facecolor='#ffffff')
ax.imshow(wordcloud, interpolation='bilinear')
ax.axis('off')
ax.set_title('Sustainability', 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