on-internet
← Community

How to make a Venn diagram where items of subsets are visible?

Stack Overflow ·

I made a Venn diagram based on the Towards Data Science example, but I was wondering if there was a way to make each item in the sets visible in the circles. For example, how do I make TDS's diagram show which person was in which group? Or how to do it in my code? Here is also my code, where you can put this chart as data.txt: Clinical Environment Food A A A B B B C C X D X Y E Y L F Z R df=pd.read_csv(data.txt, sep='\t') C=set(df['Clinical'].dropna()) #The columns are not equal lenght in real dataframe E=set(df['Environmental'].dropna()) F=set(df['Food'].dropna()) # Venn diagran subsection CE

Comments

Sign in or sign up to comment and upvote.

No comments yet.