OiO.lk Community platform!

Oio.lk is an excellent forum for developers, providing a wide range of resources, discussions, and support for those in the developer community. Join oio.lk today to connect with like-minded professionals, share insights, and stay updated on the latest trends and technologies in the development field.
  You need to log in or register to access the solved answers to this problem.
  • You have reached the maximum number of guest views allowed
  • Please register below to remove this limitation

WordClouds in matplotlib-set-diagrams by Word Frequency

  • Thread starter Thread starter Simon Eaton
  • Start date Start date
S

Simon Eaton

Guest
I would like to create Venn Diagram WordClouds for two sets of words. matplotlib-set-diagrams https://github.com/paulbrodersen/matplotlib_set_diagrams (matplotlib-venn is now deprecated) works great but the font sizes used for each word do not correspond to the word frequencies in each set.

matplotlib-set-diagrams calls word-cloud, which has a nice example of what I would like for a single set of words https://amueller.github.io/word_clo...ency.html#sphx-glr-auto-examples-frequency-py but I would like to combine the two approaches. Obviously a brute force way of doing it would be to create three separate masks for wordlist1 only, wordlist2 only and wordlist1+2 but that is clearly an inelegant way of doing it. Any suggestions? Thanks, Simon
<p>I would like to create Venn Diagram WordClouds for two sets of words. matplotlib-set-diagrams <a href="https://github.com/paulbrodersen/matplotlib_set_diagrams" rel="nofollow noreferrer">https://github.com/paulbrodersen/matplotlib_set_diagrams</a> (matplotlib-venn is now deprecated) works great but the font sizes used for each word do not correspond to the word frequencies in each set.</p>
<p>matplotlib-set-diagrams calls word-cloud, which has a nice example of what I would like for a single set of words <a href="https://amueller.github.io/word_clo...ency.html#sphx-glr-auto-examples-frequency-py" rel="nofollow noreferrer">https://amueller.github.io/word_clo...ency.html#sphx-glr-auto-examples-frequency-py</a> but I would like to combine the two approaches. Obviously a brute force way of doing it would be to create three separate masks for wordlist1 only, wordlist2 only and wordlist1+2 but that is clearly an inelegant way of doing it. Any suggestions?
Thanks, Simon</p>
 

Latest posts

P
Replies
0
Views
1
Paras Chouhan
P
Top