Skip to content

Instantly share code, notes, and snippets.

@ChaitanyaBaweja
Created July 16, 2020 09:42
Show Gist options
  • Save ChaitanyaBaweja/8017c6df900580367712716aadd4ca8f to your computer and use it in GitHub Desktop.
Save ChaitanyaBaweja/8017c6df900580367712716aadd4ca8f to your computer and use it in GitHub Desktop.
# defining our venn
v = venn2(subsets=(1,1,1), set_labels = ('Set A', 'Set B'))
# setting color of id 11 to purple
v.get_patch_by_id('11').set_color('purple')
#setting label of id 10 to New Text
v.get_label_by_id('10').set_text('New Text')
#plot title
plt.title('Customizing Venn using IDs')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment