konstantint / matplotlib-venn

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

Feature Request: add ability to set labels to minor regions #42

Closed stochastic1 closed 5 years ago

stochastic1 commented 5 years ago

I'd like to be able to put percentage labels on each of the 7 regions in a 3-factor venn plot. Or names. Or use the percentages as labels within the names.

I'd be willing to help with this. There's a use case in my work.

konstantint commented 5 years ago

Check out the subset_label_formatter argument of the venn3 function. Passing something like lambda x: '%0.2f%%' % (x*100.0/total) might do what you are looking for.

konstantint commented 5 years ago

Duplicate of #8

stochastic1 commented 5 years ago

That's a great suggestion and it solved what I needed. Thank you!