You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+36-36Lines changed: 36 additions & 36 deletions
Original file line number
Diff line number
Diff line change
@@ -6,12 +6,12 @@ Generate stylistic wordclouds, including gradients and icon shapes!
6
6
7
7
stylecloud is a Python package that leverages the popular [word_cloud](https://github.com/amueller/word_cloud) package, adding useful features to create truly unique word clouds!
8
8
9
-
* Icon shapes (of any size!) for wordclouds (via [Font Awesome](https://fontawesome.com) 5.12.0 Free, or your own [Font Awesome Pro](https://github.com/minimaxir/stylecloud-examples/tree/master/fa-pro))
10
-
* Support for advanced color palettes (via [palettable](https://jiffyclub.github.io/palettable/))
11
-
* Manual color selection for text and backgrounds,
12
-
* Directional gradients w/ the aforementioned palettes.
13
-
* Supports reading text files and CSVs (either one-column w/ texts, or two columns w/ words+weights).
14
-
* Command Line Interface!
9
+
- Icon shapes (of any size!) for wordclouds (via [Font Awesome](https://fontawesome.com) 5.13.0 Free, or your own [Font Awesome Pro](https://github.com/minimaxir/stylecloud-examples/tree/master/fa-pro))
10
+
- Support for advanced color palettes (via [palettable](https://jiffyclub.github.io/palettable/))
11
+
- Manual color selection for text and backgrounds,
12
+
- Directional gradients w/ the aforementioned palettes.
13
+
- Supports reading text files and CSVs (either one-column w/ texts, or two columns w/ words+weights).
14
+
- Command Line Interface!
15
15
16
16
This package is a more formal implementation of my [stylistic word cloud project](https://minimaxir.com/2016/05/wordclouds/) from 2016.
17
17
@@ -105,46 +105,46 @@ Good resources for stopwords in other languages are the [stop-words Python packa
105
105
106
106
These parameters are valid for both the Python function and the CLI (you can use `stylecloud -h` to get this information as well).
107
107
108
-
* text: Input text. Best used if calling the function directly.
109
-
* file_path: File path of the input text/CSV. Best used on the CLI.
110
-
* gradient: Direction of gradient. (if not None, the stylecloud will use a directional gradient) [default: `None`]
111
-
* size: Size (length and width in pixels) of the stylecloud, or a two-element tuple representing the width and height of the stylecloud (e.g. `'(1024, 512)'` for a 1024x512 stylecloud). [default: `512`]
112
-
* icon_name: Icon Name for the stylecloud shape. (e.g. 'fas fa-grin') [default: `fas fa-flag`]
113
-
* palette: Color palette (via palettable) [default: `cartocolors.qualitative.Bold_5`]
114
-
* colors: Color(s) to use as the text colors. Overrides both gradient and palette if specified [default: `None`]
115
-
* background_color: Background color (name or hex) [default: `white`]
116
-
* max_font_size: Maximum font size in the stylecloud. [default: `200`]
117
-
* max_words: Maximum number of words to include in the stylecloud. [default: `2000`]
118
-
* stopwords: Boolean to filter out common stopwords. [default: `True`]
119
-
* custom_stopwords: list of custom stopwords. e.g: For other languages than english [default: `STOPWORDS`, via `word_cloud`]
120
-
* output_name: Output file name of the stylecloud. [default: `stylecloud.png`]
121
-
* font_path: Path to .ttf file for font to use in stylecloud. [default: uses included Staatliches font]
122
-
* random_state: Controls random state of words and colors. [default: `None`]
123
-
* collocations: Whether to include collocations (bigrams) of two words. Same behavior as base `word_cloud` package. [default: `True`]
124
-
* invert_mask: Whether to invert the icon mask, so the words fill the space *except* the icon mask. [default: `False`]
125
-
* pro_icon_path: Path to Font Awesome Pro .ttf file if using FA Pro. [default: `None`]
126
-
* pro_css_path: Path to Font Awesome Pro .css file if using FA Pro. [default: `None`]
108
+
- text: Input text. Best used if calling the function directly.
109
+
- file_path: File path of the input text/CSV. Best used on the CLI.
110
+
- gradient: Direction of gradient. (if not None, the stylecloud will use a directional gradient) [default: `None`]
111
+
- size: Size (length and width in pixels) of the stylecloud, or a two-element tuple representing the width and height of the stylecloud (e.g. `'(1024, 512)'` for a 1024x512 stylecloud). [default: `512`]
112
+
- icon_name: Icon Name for the stylecloud shape. (e.g. 'fas fa-grin') [default: `fas fa-flag`]
113
+
- palette: Color palette (via palettable) [default: `cartocolors.qualitative.Bold_5`]
114
+
- colors: Color(s) to use as the text colors. Overrides both gradient and palette if specified [default: `None`]
115
+
- background_color: Background color (name or hex) [default: `white`]
116
+
- max_font_size: Maximum font size in the stylecloud. [default: `200`]
117
+
- max_words: Maximum number of words to include in the stylecloud. [default: `2000`]
118
+
- stopwords: Boolean to filter out common stopwords. [default: `True`]
119
+
- custom_stopwords: list of custom stopwords. e.g: For other languages than english [default: `STOPWORDS`, via `word_cloud`]
120
+
- output_name: Output file name of the stylecloud. [default: `stylecloud.png`]
121
+
- font_path: Path to .ttf file for font to use in stylecloud. [default: uses included Staatliches font]
122
+
- random_state: Controls random state of words and colors. [default: `None`]
123
+
- collocations: Whether to include collocations (bigrams) of two words. Same behavior as base `word_cloud` package. [default: `True`]
124
+
- invert_mask: Whether to invert the icon mask, so the words fill the space _except_ the icon mask. [default: `False`]
125
+
- pro_icon_path: Path to Font Awesome Pro .ttf file if using FA Pro. [default: `None`]
126
+
- pro_css_path: Path to Font Awesome Pro .css file if using FA Pro. [default: `None`]
127
127
128
128
## Helpful Notes
129
129
130
-
* The primary goal of this package is to create data visualizations of text that provide a unique aesthetic. Word clouds have tradeoffs in terms of a statistically robust data visualization, but this is explicitly prioritizing coolness!
131
-
* This package is released as a separate package from `word_cloud` due to the increase in scope and Python dependencies.
132
-
* The ideal fonts for generating a good stylecloud are a) bold/high weight in order to increase readability, and b) condensed/low kerning to fit more text. Both of these traits are why [Staatliches](https://fonts.google.com/specimen/Staatliches) is the default font for stylecloud (overriding Droid Sans in the base `word_cloud`).
133
-
* You may want to consider doing post-processing after generating a stylecloud: for example, adding color masks, adding perception skew, feed it to a style transfer AI model, etc.
134
-
* The default `max_font_size` of `200` is calibrated for the default `size` of `512`. If you increase the `size`, you may want to consider increasing `max_font_size` as well.
135
-
* Due to the size of the included Font Awesome font files, they will not be updated on every new minor FA release.
136
-
* It's recommended to use FA icons which are large with heavy weight; thin icons might constrain the text too much.
137
-
* If using the default random-color-sampling method, it's recommended to use a qualitative palette. Inversely, if using a gradient, it's recommended to use a *non*qualitative palette (e.g. a sequential palette).
138
-
130
+
- The primary goal of this package is to create data visualizations of text that provide a unique aesthetic. Word clouds have tradeoffs in terms of a statistically robust data visualization, but this is explicitly prioritizing coolness!
131
+
- This package is released as a separate package from `word_cloud` due to the increase in scope and Python dependencies.
132
+
- The ideal fonts for generating a good stylecloud are a) bold/high weight in order to increase readability, and b) condensed/low kerning to fit more text. Both of these traits are why [Staatliches](https://fonts.google.com/specimen/Staatliches) is the default font for stylecloud (overriding Droid Sans in the base `word_cloud`).
133
+
- You may want to consider doing post-processing after generating a stylecloud: for example, adding color masks, adding perception skew, feed it to a style transfer AI model, etc.
134
+
- The default `max_font_size` of `200` is calibrated for the default `size` of `512`. If you increase the `size`, you may want to consider increasing `max_font_size` as well.
135
+
- Due to the size of the included Font Awesome font files, they will not be updated on every new minor FA release.
136
+
- It's recommended to use FA icons which are large with heavy weight; thin icons might constrain the text too much.
137
+
- If using the default random-color-sampling method, it's recommended to use a qualitative palette. Inversely, if using a gradient, it's recommended to use a *non*qualitative palette (e.g. a sequential palette).
138
+
139
139
# Projects Using stylecloud
140
140
141
-
*[twcloud](https://github.com/minimaxir/twcloud) — Python package + CLI to generate wordclouds of Twitter tweets.
141
+
-[twcloud](https://github.com/minimaxir/twcloud) — Python package + CLI to generate wordclouds of Twitter tweets.
142
142
143
143
## Maintainer/Creator
144
144
145
145
Max Woolf ([@minimaxir](https://minimaxir.com))
146
146
147
-
*Max's open-source projects are supported by his [Patreon](https://www.patreon.com/minimaxir) and [GitHub Sponsors](https://github.com/sponsors/minimaxir). If you found this project helpful, any monetary contributions to the Patreon are appreciated and will be put to good creative use.*
147
+
_Max's open-source projects are supported by his [Patreon](https://www.patreon.com/minimaxir) and [GitHub Sponsors](https://github.com/sponsors/minimaxir). If you found this project helpful, any monetary contributions to the Patreon are appreciated and will be put to good creative use._
Copy file name to clipboardExpand all lines: setup.py
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@
5
5
6
6
stylecloud is a Python package that leverages the popular [word_cloud](https://github.com/amueller/word_cloud) package, adding useful features to create truly unique word clouds!
7
7
8
-
* Icon shapes (of any size!) for wordclouds (via [Font Awesome](https://fontawesome.com) 5.12.0 Free, or your own Font Awesome Pro)
8
+
* Icon shapes (of any size!) for wordclouds (via [Font Awesome](https://fontawesome.com) 5.13.0 Free, or your own Font Awesome Pro)
9
9
* Support for advanced color palettes (via [palettable](https://jiffyclub.github.io/palettable/))
10
10
* Manual color selection for text and backgrounds,
11
11
* Directional gradients w/ the aforementioned palettes.
@@ -19,7 +19,7 @@
19
19
setup(
20
20
name="stylecloud",
21
21
packages=["stylecloud"], # this must be the same as the name above
22
-
version="0.4.3",
22
+
version="0.5.0",
23
23
description="Python package + CLI to generate stylistic wordclouds, "
0 commit comments