Skip to main content

Plot four set venn diagrams, like venny (http://bioinfogp.cnb.csic.es/tools/venny/) but using python sets:

Installation

Install library, perhaps within a virtualenv:

$ pip install pyvenny

Command Line Interface

A command line script is included, vennyplot:

usage: vennyplot [-h] --output OUTPUT --sets SETS SETS SETS SETS
                 [--labels LABELS LABELS LABELS LABELS]

Generate a Venn diagram of four files taken as sets of lines.

optional arguments:
  -h, --help            show this help message and exit
  --output OUTPUT       absolute path to output file
  --sets SETS SETS SETS SETS
                        absolute paths to four files
  --labels LABELS LABELS LABELS LABELS
                        four set labels

Aplication Programming Interface

Use it within your Python code:

>>> import pyvenny
>>> with open('diagram.svg', 'w') as f:
         f.write( pyvenny.render_four_set_venn(
         set(['a','b','c','d']),
         set(['b','c','d','e']),
         set(['c','d','e','f']),
         set(['d','e','f','g']))

Release files for pyvenny 1.0

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

Source distribution (sdist)

Source distribution for pyvenny 1.0
File Size Uploaded
pyvenny-1.0.tar.gz 5.7 kB Details

Release files / pyvenny-1.0.tar.gz

Download URL pyvenny-1.0.tar.gz
Size 5.7 kB
Tags Source
SHA-256 checksum
How to use checksums
0195f2b59639235da033192bcd346f523ac8fcd32192b0cfa8eeee500021e6c3
BLAKE2b-256 checksum
How to use checksums
fe2193b8c767aa7fb79bbf9f1714153da6c6b168d66adda54226a00d2694e1a0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

1.0 This release

1 release file

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