guo-yong-zhi / WordCloud.jl

word cloud generator in julia
MIT License
105 stars 2 forks source link

Display seems to be full of bars of numbers #18

Open Rratic opened 1 year ago

Rratic commented 1 year ago

I tried the example:

using WordCloud
using Random
words = [randstring(rand(1:8)) for i in 1:300]
weights = randexp(length(words))
wc = wordcloud(words, weights)
generate!(wc)
paint(wc, "D:/random.svg")

and this is what it looks like: random

environment:

julia> versioninfo()
Julia Version 1.8.4
Commit 00177ebc4f (2022-12-23 21:32 UTC)
Platform Info:
  OS: Windows (x86_64-w64-mingw32)
  CPU: 8 × Intel(R) Core(TM) i5-10210U CPU @ 1.60GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-13.0.1 (ORCJIT, skylake)
  Threads: 1 on 8 virtual cores

(@v1.8) pkg> st WordCloud
Status `C:\Users\anonymous\.julia\environments\v1.8\Project.toml`
  [6385f0a0] WordCloud v0.10.7
guo-yong-zhi commented 1 year ago

Please see https://github.com/guo-yong-zhi/WordCloud-Gallery/issues/1 You can temporarily solve the problem with ] add Pango_jll and ] pin Pango_jll@1.42.4.

eohne commented 3 days ago

Hi this problem still exists. I also get the same image as above - just numbers in boxes. Unfortunately, once I pin Pango_jll@1.42.4 WordCloud fails precompilation. Any other solutions?

Edit: Since pinning and the package are not recompiling, I unpinned and updated WordCloud precompilation is failing regardless of what I do...

guo-yong-zhi commented 2 days ago

Thank you for your feedback @eohne . I've found that the compatibility of pango in the new version of Windows 11 and Julia 1.10 has become even worse. As a result, I have disabled the random font feature in WordCloud.jl on Windows, which sometimes leads to errors. Operating systems other than Windows, such as Linux, are unaffected and will remain unchanged. Please try the latest version of WordCloud.jl (0.13.3 or above).