diff --git a/README.md b/README.md index 0423307..e282626 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ # [WordCloud.jl](https://github.com/guo-yong-zhi/WordCloud.jl) -[![CI](https://github.com/guo-yong-zhi/WordCloud.jl/actions/workflows/ci.yml/badge.svg)](https://github.com/guo-yong-zhi/WordCloud.jl/actions/workflows/ci.yml) [![CI-nightly](https://github.com/guo-yong-zhi/WordCloud.jl/actions/workflows/ci-nightly.yml/badge.svg)](https://github.com/guo-yong-zhi/WordCloud.jl/actions/workflows/ci-nightly.yml) [![codecov](https://codecov.io/gh/guo-yong-zhi/WordCloud.jl/branch/main/graph/badge.svg?token=43TOrL25V7)](https://codecov.io/gh/guo-yong-zhi/WordCloud.jl) +[![CI](https://github.com/guo-yong-zhi/WordCloud.jl/actions/workflows/ci.yml/badge.svg)](https://github.com/guo-yong-zhi/WordCloud.jl/actions/workflows/ci.yml) [![CI-nightly](https://github.com/guo-yong-zhi/WordCloud.jl/actions/workflows/ci-nightly.yml/badge.svg)](https://github.com/guo-yong-zhi/WordCloud.jl/actions/workflows/ci-nightly.yml) [![codecov](https://codecov.io/gh/guo-yong-zhi/WordCloud.jl/branch/master/graph/badge.svg?token=2U0X769Z51)](https://codecov.io/gh/guo-yong-zhi/WordCloud.jl) ![juliadoc](res/juliadoc.png) 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. Our generator has the following highlights: * **Flexible** Any mask, any color, any angle, adjustable density. You can specify the initial position of some words. Or you can pin some words and adjust others, etc. diff --git a/examples/random.jl b/examples/random.jl index fec6424..7b92308 100644 --- a/examples/random.jl +++ b/examples/random.jl @@ -1,6 +1,9 @@ using WordCloud using Random -words = [Random.randstring(rand(1:8)) for i in 1:500] +words = [Random.randstring(rand(1:8)) for i in 1:300] weights = randexp(length(words)) .* 2000 .+ rand(20:100, length(words)); -wc = wordcloud(words, weights, mask=shape(ellipse, 500, 500, color=0.15), angles=(0,90,45)) |> generate! \ No newline at end of file +wc = wordcloud(words, weights, + mask=shape(ellipse, 500, 500, color=0.15), + density=0.5, + angles=(0,90,45)) |> generate! \ No newline at end of file