[Baypiggies] Venn diagram for five events

Vikram K kpguy1975 at gmail.com
Fri May 6 13:48:43 CEST 2011

I sent the following query to the matplotlib list a while back. I would
appreciate it if someone here can answer my question. Also, is there an
alternative to matplotlib for this kind of a problem?

I wish to draw a Venn diagram depicting five events and their intersections.
I came across some code for three events--could someone please direct me
about how i could modify it for five events.

from matplotlib import pyplot as plt
from matplotlib.patches import Circle

f = plt.figure()
ax = f.gca()
rad = 1.4
c1 = Circle((-1,0),rad, alpha=.2, fc ='red')
c2 = Circle((1,0),rad, alpha=.2, fc ='blue')
c3 = Circle((0,1),rad, alpha=.2, fc ='green')
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/baypiggies/attachments/20110506/177c2d95/attachment.html>

More information about the Baypiggies mailing list