konstantint / matplotlib-venn

Area-weighted venn-diagrams for Python/matplotlib
MIT License
496 stars 67 forks source link

Venn diagrams don't seem proportional #25

Closed wllmtrng closed 8 years ago

wllmtrng commented 8 years ago

The following venn diagram should be more proportional than it currently is, unless of course this is intended behavior for clarity purposes:

from matplotlib_venn import venn2
venn2(subsets = (100, 0, 99), set_labels = ("People with Cancer", "People with Cancer, and Test Positive"))
screen shot 2016-05-01 at 4 15 51 pm
wllmtrng commented 8 years ago

With values of 100, and 90, it also produces a similar diagram.

venn2(subsets = (100, 0, 90), set_labels = ("People with Cancer", "People with Cancer, and Test Positive"))
screen shot 2016-05-01 at 4 19 34 pm
konstantint commented 8 years ago

The large circle has area 190, the smaller one 90, as intended. Note that the numbers on the regions indicate the areas of those regions only. In particular, 100 is the size of the set "People with cancer and Not Test positive". What you wanted to plot is probably:

 venn2(subsets = (10, 0, 90), set_labels = ("People with Cancer", "Test Positive"))