set circle size and label size on venn diagram with matplotlib-venn

a 夏天 提交于 2019-12-05 19:41:03

When you call venn3 function it call solve_venn3_circles to calculate centers and radius of circles. It is mean that you can not set radius by yourself because it is affect the final image and it may be incorrect. However you may try to adjust your circles' size by normalize_to argument of venn3 function.

For font size you can use this code:

for t in v_test1.set_labels: t.set_fontsize(22)
for t in v_test1.subset_labels: t.set_fontsize(20)

Or set font size by id:

label = v_test1.get_label_by_id('111')          
label.set_fontsize(22) 

For id information look for manual page.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!