Skip to content

Commit

Permalink
fix qtree list bug when rescale!
Browse files Browse the repository at this point in the history
  • Loading branch information
guo-yong-zhi committed Apr 10, 2021
1 parent d24ea2a commit 08f2342
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "WordCloud"
uuid = "6385f0a0-cb03-45b6-9089-4e0acc74b26b"
authors = ["guoyongzhi <[email protected]>"]
version = "0.6.5"
version = "0.6.6"

[deps]
ColorSchemes = "35d6a980-a343-548e-a6ea-1d62b119f2f4"
Expand Down
1 change: 1 addition & 0 deletions src/wc-method.jl
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ function generate!(wc::WC, args...; retry=3, krags...)
for r in 1:retry
if r != 1
rescale!(wc, 0.97)
qtrees = [wc.maskqtree, wc.qtrees...]
dens = textoccupied(getwords(wc), getfontsizes(wc), getfonts(wc))/wc.params[:groundoccupied]
println("#$r. try scale = $(wc.params[:scale]). The density is reduced to $dens")
else
Expand Down

2 comments on commit 08f2342

@guo-yong-zhi
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator register()

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/33971

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.6.6 -m "<description of version>" 08f234266233572e5febd5bae23f0a9cd251d7ab
git push origin v0.6.6

Please sign in to comment.