Skip to main content

Venn diagram plot of four sets, like venny.

Project description

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']))

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for pyvenny, version 1.0
Filename, size File type Python version Upload date Hashes
Filename, size pyvenny-1.0.tar.gz (5.7 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page