Skip to content

Commit

Permalink
lower random-example's difficulty for CI
Browse files Browse the repository at this point in the history
  • Loading branch information
guo-yong-zhi committed Mar 28, 2021
1 parent 9c188e0 commit 1e4a143
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
7 changes: 5 additions & 2 deletions examples/random.jl
Original file line number Diff line number Diff line change
@@ -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!
wc = wordcloud(words, weights,
mask=shape(ellipse, 500, 500, color=0.15),
density=0.5,
angles=(0,90,45)) |> generate!

0 comments on commit 1e4a143

Please sign in to comment.