Skip to main content

Venny4Py

Simple Venn diagrams for Python 3, up to 4 sets (for more than 4 sets it is better to use UpSet plot). It will take as input a dictionary of 2-4 sets and produce a venn diagram and a txt file with element intersections.

Dependencies:

  • itertools
  • matplotlib

Installation:

pip install venny4py

When installed, import:

from venny4py.venny4py import *

#dict of sets
sets = {
    'Set1': set(list("Harry Potter")),
    'Set2': set(list("Hermione Granger")),
    'Set3': set(list("Ron Weasley")),
    'Set4': set(list("Severus Snape"))
}
    
venny4py(sets=sets)

Parameters:

  • sets - dictionary of sets (required)
  • out - directory to output files, default current directory
  • asax - if diagram should be plotted as subplot, then provide matplotlib ax here. Default is 'False' which will plot new figure
  • ext - image extension, default is 'png'.
  • dpi - image resolution, default is 300 dpi.
  • size - image size in inches, default is 3.5. If using custom ax through "asax" parameter, specify approximate size of subplot in inches since fontsize is dependent on this parameter.
  • colors - set of colors for each set, default is "bgrc".
  • line_width - control line width.
  • font_size - control font size.
  • legend_cols - number of legend columns, default is 2.
  • column_spacing - column spacing in legend, default is 4.
  • edge_color - edge colors, default is 'black'.
  • alpha - fill opacity of the sets, default is 0.3.

Check "Examples.ipynb" https://github.com/timyerg/venny4py/blob/main/Examples.ipynb to see some examples.

Metadata

Release files for venny4py 1.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for venny4py 1.0.4
File Size Uploaded Provenance Actions
venny4py-1.0.4.tar.gz 753.7 kB Without provenance Details for venny4py-1.0.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for venny4py 1.0.4
File Interpreter ABI Platform Actions
venny4py-1.0.4-py3-none-any.whl Python 3 none any Details for venny4py-1.0.4-py3-none-any.whl

Total release size: 758.4 kB

Release files / venny4py-1.0.4.tar.gz

Download URL venny4py-1.0.4.tar.gz
Size 753.7 kB
Tags Source
SHA-256 checksum
How to use checksums
957042ac84f2494c9cb7314c4858d0556c0d911a891e698deb0bf6047305cafd
BLAKE2b-256 checksum
How to use checksums
c60e83a4fa2166f004c7ba1645ef64ebcc08aebc911c9b940453faa1cd998256
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.8

Release files / venny4py-1.0.4-py3-none-any.whl

Download URL venny4py-1.0.4-py3-none-any.whl
Size 4.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fdccc14f514aa5ad5c2350532d45e4eb04f6fbc62e3a16dcb50bd1f24631c17f
BLAKE2b-256 checksum
How to use checksums
3cd3bcb5fd0b2249e8ca56b1759c6f8998e4cf50f437c612dec1680cba7c298f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.8

Security for venny4py 1.0.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page