konstantint / matplotlib-venn

Area-weighted venn-diagrams for Python/matplotlib
MIT License
507 stars 68 forks source link

number missing from venn3 diagram #61

Closed teancake closed 3 years ago

teancake commented 3 years ago

Hi, I drew a venn3 diagram using the following code and found the humble number '19' was missing from the diagram, could you please have a look at this problem? thanks a lot~ from matplotlib_venn import venn3 venn3(subsets=(19,3235,10,420,39,55,161),set_labels=('A','B','C')) my system configuration is as follows: Python 3.7.4 (default, Jul 9 2019, 18:14:44) [Clang 9.0.0 (clang-900.0.39.2)] on darwin

Screen Shot 2021-01-28 at 8 26 50 PM
konstantint commented 3 years ago

This is a typical example of a "suboptimal layout" and, following the now established tradition I'll mark it as a duplicate of #30. The typical solution is to force the "invisible" region to appear by artificially expanding its size:

venn3_unweighted(subsets=(19,3235,10,420,39,55,161),set_labels=('A','B','C'),subset_areas=(19*2,3235,10,420,39,55,161))

For extra context, see this comment or this comment or this comment.

konstantint commented 3 years ago

Duplicate of #30