Word Cloud

E-commerce Keywords

Online shopping and retail terms

Output
E-commerce Keywords
Python
import matplotlib.pyplot as plt
from wordcloud import WordCloud

text = """E-commerce Online Shopping Cart Checkout Payment Gateway
Amazon Shopify WooCommerce Magento BigCommerce Dropshipping
Product Catalog Inventory SKU Pricing Discount Coupon Promotion
Customer Review Rating Recommendation Wishlist Favorites Save
Shipping Delivery Tracking Returns Refund Exchange Warranty
Mobile App Website UX Conversion Abandonment Retargeting Email
Subscription Box Membership Loyalty Rewards Points Tier VIP"""

def emerald_teal(word, font_size, position, orientation, random_state=None, **kwargs):
    colors = ['#047857', '#059669', '#10b981', '#34d399', '#065f46']
    return colors[hash(word) % len(colors)]

wordcloud = WordCloud(
    width=1000, height=600,
    background_color='#ffffff',
    color_func=emerald_teal,
    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('E-commerce', 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