Hi, I’m very happy to announce my first julia package WordCloud.jl here. Word cloud (tag cloud or wordle) is a novelty visual representation of text data. The importance of each word is shown with font size or color. WordCloud.jl has the following highlights:
Flexible Any mask, any color, any angle, adjustable filling rate. You can specify the initial position of some words. Or you can pin some words and adjust others, etc.
Fast 100% in Julia and efficient implementation based on Quadtree & gradient optimization. The advantage is more obvious when generating large images.
Exact Words with the same weight have the exact same size. The algorithm will never scale the word to fit the blank.
Haha what a nice coincidence! I was just looking for a tool to make a word cloud for a presentation I will give in two weeks, and this is a nice timely surprise!
SVG exporting is supported at v0.4.0 You just need to paint(wc, "filename.svg") or paintsvg(wc). While, this feature depends on Luxor v2.8.0 which may be released after Julia 1.6. Therefore, it’s not currently available via Pkg’s update.
We need .txt or .html files as inputs. Running showexample(:juliadoc) in v0.4.0 can show the way to generate word cloud from julia’s html docs. Moreover, showexample(:fromweb) shows a example that generates a word cloud from online web page.
I have been using it and the functionality is great, wish there were some docs for it though as it appears there are quite a few options to choose from.
I updated the gallery before the releasing of the new version of the WordCloud.jl itself, which led to some inconsistencies. I apologize for that. It should work fine now with the WordCloud.jl v0.7.0. Please update it.
As for the documentation, it’s a bit hard for a non-native English speaker like me. I am help wanted.
p.s. There used to be an auto-generated docstrings in the Julia Hub, but it gone later, leaving only Readme. I don’t know why.
I don’t know why Pango choose that odd font when the random set font is unavailable. You can set a proper font in the fonts textbox or just set it to empty.