word_cloud_util¶
Functions
|
|
|
Generates an SVG contour mask based on a word cloud object and dimensions. |
|
Random color generation func |
- default_color_func(word, font_size, position, orientation, random_state=None, **kwargs)¶
- generate_contour_svg(wc, width, height)[source]¶
Generates an SVG contour mask based on a word cloud object and dimensions.
- Parameters:
wc (WordCloud) – The word cloud object.
width (int) – SVG image width in pixels.
height (int) – SVG image height in pixels.
- Returns:
SVG point list for the contour mask, or empty string if not generated.
- Return type:
str
- random_color_darker(word=None, font_size=None, position=None, orientation=None, font_path=None, random_state=None)[source]¶
Random color generation func
Classes
|