Questions tagged [matplotlib-venn]

python library to plot Venn diagrams in matplotlib

matplotlib-venn is a python library for plotting two or three way Venn diagrams in matplotlib. Venn diagrams are used to show possible logical relations between different sets of data.

68 questions
57
votes
3 answers

Python Matplotlib Venn diagram

I want to plot variables that belongs to certain groups. Say that I have 6 variables that I want to sort into these 3 groups and plot like a venn diagram. I would like to annotate the variable names into the three bubbles. In this simple example we…
jonas
  • 13,559
  • 22
  • 57
  • 75
14
votes
3 answers

How to modify the font size in matplotlib-venn

I have the following Venn diagrams: from matplotlib import pyplot as plt from matplotlib_venn import venn3, venn3_circles set1 = set(['A', 'B', 'C', 'D']) set2 = set(['B', 'C', 'D', 'E']) set3 = set(['C', 'D',' E', 'F', 'G']) venn3([set1, set2,…
neversaint
  • 60,904
  • 137
  • 310
  • 477
8
votes
1 answer

Venn3: How to reposition circles and labels?

I have made a three way venn diagram. I have three issues with it that I can't seem to solve. What is the code to move the circle labels (i.e."Set1","Set2","Set3") because right now one is too far away from the circle. What is the code to make the…
Tom
  • 243
  • 5
  • 13
8
votes
4 answers

Problems with python easy install

I have a problem using easy_install for matplotlib-venn. I'm on a windows computer using python2.7. I'm suspecting the path is not correct but I do not know how to fix the problem. Could anyone help me? I'm attaching the output from trying to run…
jonas
  • 13,559
  • 22
  • 57
  • 75
7
votes
2 answers

Finding intersect values using Python matplotlib-venn

I've been using matplotlib-venn to generate a venn diagram of 3 sets. Shown below. I wanted to ask how can find the values of the intersects of these sets. For example, what are the 384 values that intersect set A and set B? What are the 144 values…
6
votes
2 answers

Accurate color blending in Matplotlib-Venn

With the following code: from matplotlib import pyplot as plt from matplotlib_venn import venn2 from collections import OrderedDict named_sets = {'x1': set(['foo','foo','bar',"pax"]), "x3" : set(['foo','qux','bar',"zoo"])} od =…
neversaint
  • 60,904
  • 137
  • 310
  • 477
5
votes
1 answer

set circle size and label size on venn diagram with matplotlib-venn

I have a couple of different Venn diagrams created with matplotlib-venn library, which share at least one set. I would like the circle of that set to be of the same size on both, so they are comparable. I would also like to change the size of the…
Nabla
  • 1,509
  • 3
  • 20
  • 35
5
votes
2 answers

matplotlib Venn diagram, 6 circles

I can make 2 and 3 circles with matplotlib_venn. Any possible to plot Venn diagram more than 3? In my case I have 6 set of data and try to plot Venn diagram with 6 circles
5
votes
3 answers

Plot venn diagram with pandas and matplotlib_venn

I'd like to plot venn diagrams based on my pandas data frame. I understand that matplotlib_venn accepts sets as input. My dataset contain client id and two other columns with information if the client was in campaign or not. df_dataset =…
HonzaB
  • 7,065
  • 6
  • 31
  • 42
5
votes
1 answer

How to save VennDiagram as PNG figure in matplotlib_venn

With the following code I tried to create the Venn diagram then saved as a file. import matplotlib from matplotlib_venn import venn2 set1 = set(['A', 'B', 'C', 'D']) set2 = set(['B', 'C', 'D', 'E']) plt =…
pdubois
  • 7,640
  • 21
  • 70
  • 99
5
votes
2 answers

Installing matplotlib-venn

I have a problem using easy-install or pip for installing matplotlib-venn. I'm on a windows computer using python2.7. However, the cmd shows there's always some errors. This is the windows using "easy_install", I typed in the command $easy_install…
Masijia Qiu
  • 51
  • 1
  • 2
4
votes
2 answers

How to label Venn diagrams with percentages of set sizes in python?

I am using the matplotlib_venn.venn2 function to plot four different Venn diagrams in a single figure. My inputs for the function's subset arguments are sets of strings: cse_set_ucb = set(['data science','algorithms', 'machine learning',...]) …
Ambareesh
  • 324
  • 1
  • 4
  • 18
4
votes
1 answer

Python: venn3_circles: How to get the values of the intersection in a Venn 3 circle diagram

Working in python with matplotlib, venn3 and venn3_circles. I am trying to get the list of elements of each intersection in a 3 circles venn diagram. I will use the example here from matplotlib import pyplot as plt import numpy as np from…
daniel_hck
  • 1,100
  • 3
  • 19
  • 38
3
votes
1 answer

How do you remove data labels in matplotlib_venn?

Not the text labels outside the circles, I can remove them by changing them to empty strings. I mean the actual numbers on the circles showing the value of each patch. I can't find how to remove these. Is there a way? Or is there a way to change the…
3
votes
1 answer

scriptExit 1 with pybedtools venn_mpl - snakemake 5.2.4

I want to create VennDiagramms with pybedtools. There is a special script using matplotlib called venn_mpl. It works perfectly when I try it out in my jupyter notebook. You can do it with python or using shell commands. Unfortunately something wents…
VcFbnne
  • 41
  • 5
1
2 3 4 5