# Define sets for the Venn diagram set1 = corporation.union(similarities)import matplotlib.pyplot as plt from matplotlib_venn import venn3 # Define the sets of similarities for Corporation, Partnership, and Sole Proprietorship corporation = { "Limited liability", "Separate legal entity", "Perpetual existence", "Ability to raise large capital" } partnership = { "Shared decision-making", "Relatively easy to establish", "Pass-through taxation (general partnerships)" } sole_proprietorship = { "Complete control", "Direct taxation", "Easy to set up and dissolve" } # Shared features between the types similarities = { "Profit motive", "Registration often required", "Operate under local laws", "Ability to hire employees" } set2 = partnership.union(similarities) set3 = sole_proprietorship.union(similarities) # Create the Venn diagram venn = venn3([set1, set2, set3], ('Corporation', 'Partnership', 'Sole Proprietorship')) # Customize the labels venn.get_label_by_id('100').set_text("Corporation-only features") venn.get_label_by_id('010').set_text("Partnership-only features") venn.get_label_by_id('001').set_text("Sole Proprietorship-only features") venn.get_label_by_id('110').set_text("Corp & Partnership common") venn.get_label_by_id('101').set_text("Corp & Sole Proprietorship common") venn.get_label_by_id('011').set_text("Partnership & Sole Prop common") venn.get_label_by_id('111').set_text("All three types common") # Add a title plt.title("Similarities and Differences of Business Types") # Show the diagram plt.show()