Skip to content

Commit 99a19a6

Browse files
guo-yong-zhiguoyongzhi
authored and
guoyongzhi
committed
update some example and the banner
1 parent 6108a2f commit 99a19a6

File tree

9 files changed

+6
-3
lines changed

9 files changed

+6
-3
lines changed

examples/compare.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ wcb = wordcloud(
2323
density = dens,
2424
backgroundcolor = :maskcolor,
2525
maskcolor = getmaskcolor(wca),
26+
font = getparameter(wca, :font),
2627
run = x->nothing, #turn off the useless initimage! and placement! in advance
2728
)
2829
#md# Follow these steps to generate a wordcloud: initimage! -> placement! -> generate!

examples/compare2.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ wcb = wordcloud(
2222
density = dens,
2323
backgroundcolor = :maskcolor,
2424
maskcolor = getmaskcolor(wca),
25+
font = getparameter(wca, :font),
2526
run = x->nothing,
2627
)
2728
#md# ### Make the same words the same style

examples/embedding.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ wc = wordcloud(
3131
words_weights,
3232
maskshape = box,
3333
masksize = (1000, 1000, 0),
34+
density=0.3,
3435
run = initimages!
3536
)
3637

examples/juliadoc.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ wc = wordcloud(
2727
mask = shape(box, 900, 300, 0, color=0.95),
2828
colors = ((0.796,0.235,0.20), (0.584,0.345,0.698), (0.22,0.596,0.149)),
2929
angles = (0, -45, 45),
30-
# font = "Georgia",
30+
#font = "Verdana Bold",
3131
)
3232
setangles!(wc, "julia", 0)
3333
# setangles!(wc, "function", 45)

res/compare.png

-161 KB
Loading

res/gathering.png

143 KB
Loading

res/juliadoc.png

2.63 KB
Loading

src/wc-class.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ function getstylescheme(lengthwords; colors=:auto, angles=:auto, mask=:auto,
185185
svgmask = mask
186186
mask = svg2bitmap(mask)
187187
if maskcolor DEFAULTSYMBOLS && (:outline keys(params) || params[:outline] <= 0)
188-
Render.recolor!(mask, maskcolor) #svg2bitmap后有杂色
188+
Render.recolor!(mask, maskcolor) #svg2bitmap后有杂色 https://github.com/JuliaGraphics/Luxor.jl/issues/160
189189
end
190190
end
191191
font = font in DEFAULTSYMBOLS ? randomfont() : font

src/wc-method.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ function placement!(wc::WC; style=:uniform, rt=:auto, centerlargestword=:auto, k
7676
if rt == :auto
7777
if hasparameter(wc, :rt)
7878
rt = getparameter(wc, :rt)
79-
println("use wordcloud's parameter `:rt=>$rt`")
79+
println("use wordcloud's parameter `:rt=>$rt` to place words")
8080
else
8181
rt = 1
8282
println("rt = 1, ellipse")

0 commit comments

Comments
 (0)