mirror of
https://github.com/StefBuwalda/whatsapp-wordcloud.git
synced 2025-11-01 12:19:57 +00:00
Update config.py
This commit is contained in:
@@ -1,14 +1,14 @@
|
|||||||
from wordcloud import WordCloud # type: ignore
|
from wordcloud import WordCloud # type: ignore
|
||||||
|
|
||||||
wordcloud = WordCloud(
|
wordcloud = WordCloud(
|
||||||
width=1920,
|
width=800,
|
||||||
height=1080,
|
height=400,
|
||||||
background_color="black", # or 'black', or any HTML color
|
background_color="black", # or 'black', or any HTML color
|
||||||
colormap="viridis", # matplotlib colormap ('plasma', 'cool', 'inferno')
|
colormap="viridis", # matplotlib colormap ('plasma', 'cool', 'inferno')
|
||||||
# font_path="path/to/font.ttf", # Use a custom font
|
# font_path="path/to/font.ttf", # Use a custom font
|
||||||
max_words=100, # Max number of words to include
|
max_words=100, # Max number of words to include
|
||||||
min_font_size=10,
|
min_font_size=10,
|
||||||
max_font_size=200,
|
max_font_size=100,
|
||||||
prefer_horizontal=1, # Between 0 (all vertical) and 1 (all horizontal)
|
prefer_horizontal=1, # Between 0 (all vertical) and 1 (all horizontal)
|
||||||
scale=4, # Higher = better resolution
|
scale=4, # Higher = better resolution
|
||||||
contour_color="steelblue", # Outline color (when using contour_width)
|
contour_color="steelblue", # Outline color (when using contour_width)
|
||||||
|
|||||||
Reference in New Issue
Block a user