milkviz.venn#
- milkviz.venn(data, names=None, colors=None, alpha=None, subset_labels=None, normalize_to=1.0, weighted=True, ax=None) Axes #
Venn diagram for 2 & 3 Sets
This is a wrapper around matplotlib-venn, allows you to input raw data and compute intersection for you.
- Parameters
- data
A list of sets
2) A list of list, will compute intersection, duplication will be considered. 3) A list of number denotes the regions in venn diagram in the following order: (10, 01, 11) or (100, 010, 110, 001, 101, 011, 111)
- names
The name for each set
- colors
The color for each set
- alpha
The alpha value for each set
- subset_labels
The label for each small regions, usually denotes the size, following the order as described before
- normalize_to
specifies the total (on-axes) area of the circles to be drawn. Sometimes tuning it (together with the overall figure size) may be useful to fit the text labels better.
- weighted
If True, the circle area is weighted by the size of sets
- ax