【发布时间】:2018-09-13 15:55:53
【问题描述】:
我想使用 Python 3 制作维恩图来显示分类数据。 如果我这样做,请说
Rosy = ["chocolate", "chips", "cake", "sweets"]
Steven = ["chocolate", "crisps", "nuggets"]
venn2([set(Rosy), set(Steven)])
plt.show()
然后我得到一张带有 the number of entries corresponding to each segment 的图表,但我想要的是 the actual entries in each segment(即 Rosy 位中的薯条、蛋糕糖果、十字路口中的巧克力以及 Steven 位中的薯片和金块)。有没有办法使用 matplotlib_venn 做到这一点?
【问题讨论】:
标签: python python-3.x matplotlib venn-diagram matplotlib-venn