Skip to content

Commit 6ec7827

Browse files
committed
feat(example): enhance word cloud customization
1 parent e965fab commit 6ec7827

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

examples/custom.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ wc = wordcloud(
1111

1212
setwords!(wc, "Alice", "Alice in Wonderland") # replace the word 'Alice' with 'Alice in Wonderland'
1313
setangles!(wc, "Alice in Wonderland", 0) # make it horizontal
14-
setcolors!(wc, "Alice in Wonderland", "purple");
14+
setcolors!(wc, "Alice in Wonderland", "purple")
15+
setfonts!(wc, "Alice in Wonderland", "fantasy bold")
1516
setfontsizes!(wc, "Alice in Wonderland", size(wc.mask, 2) / length("Alice in Wonderland"))
1617
initialize!(wc, "Alice in Wonderland")
1718
r = size(wc.mask, 2) / size(getimages(wc, "Alice in Wonderland"), 2) * 0.95

0 commit comments

Comments
 (0)