Word Cloud

Food Industry Terms

Culinary and food industry vocabulary

Output
Food Industry Terms
Python
import matplotlib.pyplot as plt
from wordcloud import WordCloud

text = """Food Restaurant Chef Kitchen Cooking Recipe Ingredients
Farm to Table Organic Local Sustainable Seasonal Fresh Artisan
Menu Tasting Course Appetizer Entree Dessert Wine Pairing Sommelier
Cuisine Italian French Japanese Chinese Mexican Indian Thai Korean
Vegan Vegetarian Plant Based Gluten Free Keto Paleo Whole Foods
Delivery Takeout Catering Food Truck Ghost Kitchen Cloud Kitchen
Michelin Star Fine Dining Casual Fast Food QSR Fast Casual Bistro"""

def red_burgundy(word, font_size, position, orientation, random_state=None, **kwargs):
    colors = ['#991b1b', '#b91c1c', '#dc2626', '#ef4444', '#7f1d1d']
    return colors[hash(word) % len(colors)]

wordcloud = WordCloud(
    width=1000, height=600,
    background_color='#ffffff',
    color_func=red_burgundy,
    max_words=70,
    max_font_size=100,
    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('Food & Culinary', 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