is an option for WordCloud that specifies the empty space to be added around each word.
WordSpacings
is an option for WordCloud that specifies the empty space to be added around each word.
Details
- Possible settings for WordSpacings include:
-
None no additional empty space s uniform space proportional to s {s1,s2} uses s1 along the word and s2 perpendicular to it
Examples
Basic Examples (1)
Use minimal spacing between words:
input = Select[StringSplit[ToLowerCase@ExampleData[{"Text", "AliceInWonderland"}], Except[WordCharacter]..], !StringMatchQ[#, WordData[All, "Stopwords"], IgnoreCase -> True]&];WordCloud[input, WordSpacings -> 0]Specify a larger spacing around the words:
WordCloud[input, WordSpacings -> 2]Specify different spacings for left and right and for top and bottom of each word:
WordCloud[input, WordSpacings -> {3, 0}]See Also
Related Guides
History
Text
Wolfram Research (2015), WordSpacings, Wolfram Language function, https://reference.wolfram.com/language/ref/WordSpacings.html.
CMS
Wolfram Language. 2015. "WordSpacings." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/WordSpacings.html.
APA
Wolfram Language. (2015). WordSpacings. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/WordSpacings.html
BibTeX
@misc{reference.wolfram_2026_wordspacings, author="Wolfram Research", title="{WordSpacings}", year="2015", howpublished="\url{https://reference.wolfram.com/language/ref/WordSpacings.html}", note=[Accessed: 13-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_wordspacings, organization={Wolfram Research}, title={WordSpacings}, year={2015}, url={https://reference.wolfram.com/language/ref/WordSpacings.html}, note=[Accessed: 13-June-2026]}