Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from matplotlib import pyplot as plt
- from matplotlib_venn import venn2
- import numpy as np
- v = venn2(subsets = (3, 2, 1))
- v.get_label_by_id('10').set_text(chr(70)+chr(117)+chr(110))
- v.get_label_by_id('01').set_text(chr(83)+chr(109)+chr(97)+chr(114)+chr(116))
- v.get_label_by_id('11').set_text('')
- v.get_label_by_id('A').set_text('')
- v.get_label_by_id('B').set_text('')
- plt.annotate(
- chr(89)+chr(117)+chr(114)+chr(117),
- xy=v.get_label_by_id('11').get_position()+np.array([0.025,0.36]),
- xytext=(0.2,0.5),
- arrowprops=dict(arrowstyle='->', connectionstyle='arc3,rad=0.5',color='gray'))
- plt.annotate(
- '',
- xy=[-0.75,0.5],
- xytext=(-0.75,-0.5),
- arrowprops=dict(arrowstyle='->')
- )
- plt.show()
Advertisement
Add Comment
Please, Sign In to add comment