Open divyansha opened 7 years ago
The space-filling algorithm that is used basically tries to place words one after another. This will preserve ranks of words, but not necessarily respect frequencies. If there is not enough space to place a word the font will be made smaller. You can guarantee that all words will get the same size if you set the maximum font size small enough so that all words can be drawn without decreasing font-size.
Maybe it would be good to have an FAQ with this in it.
I have the same problem. It seems when the frequency of the words in a document is the same this happen. this is the problem I posted in stackoverflow: https://stackoverflow.com/questions/54566343/word-cloud-does-not-show-the-frequency-of-the-words-correctly?noredirect=1#comment95964240_54566343 any update how can I fix it?
Thanks.
As I said above: decrease the maximum font size.
Well, I figured out I need to set both maximum size and min size to make sure word cloud showing the frequencies of the words correctly. before I had not set any size and it was the default. Although the number of words is not too much to face a problem in case of the space, the default font size shows an incorrect result. Thanks anyway I set the max and min accordingly and now it works well.
I would like to work on this issue. I am a Masters student in BITS Pilani. It would be really helpful if I could get some kind of approval from the owner/author.
@tirth78 feel free to start on any of these issues.
I recently passed in a document where each word occurs only once. The resulting word cloud did not have all words of the same size. Are there any possible reasons why this is happening other than a bug (I used the code example provided in the Readme)?