Venn diagrams

Hi all,

Is there any simple way in matplotlib, or in any other python library, to make a simple Venn diagram, I want to show three events and their intersections? I have tried googling for any hints but didn’t find anything.

Thanks for any help!

Ian

···

Ian Harry
School of Physics & Astronomy
Queens Buildings, The Parade
Cardiff, CF24 3AA
Email: Ian.Harry@…1663…
Phone: (+44) 29 208 75120
Mobile: (+44) 7890 479090

Ian Harry wrote:

Hi all,

Is there any simple way in matplotlib, or in any other python library, to
make a simple Venn diagram, I want to show three events and their
intersections? I have tried googling for any hints but didn't find anything.

You can use Sage (http://www.sagemath.org or http://sagenb.org)

http://wiki.sagemath.org/interact/misc#AnInteractiveVennDiagram

(scroll down to see the picture; email me off-list if you'd like help in setting up an account or installing Sage; you can use Sage as a python library).

Even if you don't use Sage and something like the interactive Venn diagram listed in the URL gives you relevant code for creating such a thing in matplotlib.

Sage uses matplotlib in the background to actually draw the Venn diagram.

Thanks,

Jason

Ian Harry wrote:

Hi all,

Is there any simple way in matplotlib, or in any other python library, to
make a simple Venn diagram, I want to show three events and their
intersections? I have tried googling for any hints but didn't find anything.

You can use Sage (http://www.sagemath.org or http://sagenb.org)

http://wiki.sagemath.org/interact/misc#AnInteractiveVennDiagram

(scroll down to see the picture; email me off-list if you'd like help in setting up an account or installing Sage; you can use Sage as a python library).

Even if you don't use Sage and something like the interactive Venn diagram listed in the URL gives you relevant code for creating such a thing in matplotlib.

Sage uses matplotlib in the background to actually draw the Venn diagram.

Thanks,

Jason