pythonvenn-diagram

Create venn diagram in python with 4 circles


How can I create a venn diagram in python from 4 sets? Seems like the limit in matplotlib is only 3?

from matplotlib_venn import venn3

v = venn3(
    [
        set(ether_list),
        set(bitcoin_list),
        set(doge_list),
    ],
)

Solution

  • Venn diagrams with circles can work only with <4 sets, because the geometrical properties of intersections (some won't be possible to show). Some python libraries that allow you to show venn diagrams with more exotic shapes are: