Python Venn diagrams - fill and edge color

2.3k Views Asked by At

I want to use matplotlib_venn library in Python3 to draw venn diagrams with transparent fill and only edge colored, almost like in the attached but I will only have 2 circles.
I could not find any straightforward way to control the colors. Any ideas, please? enter image description here

Currently I have the code:

set1 = set([1,2,3])
set2 = set([2,3,4,5,6,7,8])
c = venn2_circles(subsets = [set1,set2], linewidth=1)
c[0].set_color("red")
plt.title("Sample Venn diagram")
plt.show()

But this result in coloring the fill and edge together.

0

There are 0 best solutions below