python - Matplotlib_venn: weird output -
i have script makes venn diagram of 3 sets using matplotlib_venn module, follows:
union = set_1.union(set_2).union(set_3) indicators = ['%d%d%d' % (a in set_1, in set_2, in set_3) in union] subsets = counter(indicators) fig = plt.figure((n+1)*2 - 1) ax = fig.add_subplot(1, 1, 1) v = venn3(subsets, (compare[0], compare[1], compare[2]), ax=ax) plt.show() here 2 images out of this, 2 different datasets 3 sets each (one little , 1 large):
in image, numbers off. 180 should in middle , 2 should somewhere on right side of image, @ barely visible yellow/green part. first thought due little size of info set, looking @ larger set ...
... can still see numbers off, although not much previously. larger, mutual set still not in middle, , other numbers seem little off "center" of set is.
any ideas why is, , can done remedy problem?
using venn3_unweighted function rather venn3 shows nice (an non-proportional) images, including 0s in smaller info set, doesn't work proportional version.
python matplotlib
No comments:
Post a Comment