Word Cloud

Photography Art Cloud

Photography and visual arts terms

Output
Photography Art Cloud
Python
import matplotlib.pyplot as plt
from wordcloud import WordCloud

text = """Photography Camera Lens Aperture Shutter Speed ISO Exposure
Composition Rule Thirds Leading Lines Framing Negative Space Symmetry
Portrait Landscape Street Documentary Wildlife Macro Astro Long Exposure
RAW JPEG Lightroom Photoshop Capture One Editing Post Processing Color
Mirrorless DSLR Full Frame Crop Sensor Sony Canon Nikon Fuji Leica
Natural Light Golden Hour Blue Hour Flash Strobe Softbox Reflector
Print Gallery Exhibition Portfolio Instagram Flickr 500px Stock Photo"""

def photo_multi(word, font_size, position, orientation, random_state=None, **kwargs):
    colors = ['#dc2626', '#ea580c', '#0284c7', '#7c3aed', '#059669']
    return colors[hash(word) % len(colors)]

wordcloud = WordCloud(
    width=1200, height=600,
    background_color='#ffffff',
    color_func=photo_multi,
    max_words=80,
    max_font_size=125,
    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

Did this help you?

Support PyLucid to keep it free & growing

Support