vennfig
vennfig is a Python package and is a wrapper for matplotlib_venn
You can draw simple Venn diagrams with 2 lines of code.
Installation:
pip install vennfig
On Jupyter:
!pip install vennfig
Examples
A, B Venn diagram
import vennfig as v
# default
v.a_b()
# using params
v.a_b(subs=2, size=6, fill_color='#f5b705', bg_color='#f7edd0',
font_size=25, title_a='P', set_a='P', set_b='Q')
A AND B, A NAND B Venn diagram
import vennfig as v
# default
v.and_nand()
# using params
v.and_nand(subs=2, size=5, fill_color='#f55faa', bg_color='#f2e4eb',
font_size=25, title_a='P and Q', title_b='a nand b', set_a='P', set_b='Q')
TRUE, FALSE Venn diagram
import vennfig as v
# default
v.true_false()
# using params
v.true_false(subs=2, size=5, fill_color='#d0f7f3', bg_color='#13edd7', title_a='P, Q, TRUE',
font_size=25, set_a='P', set_b='Q')
OR, NOR Venn diagram
import vennfig as v
# default
v.or_nor()
# using params
v.or_nor(subs=3, size=5, fill_color='#88f77c', bg_color='#daf5d7', font_size=25,
title_b='P NOR Q', set_a='P', set_b='Q')
XOR, XNOR Venn diagram
import vennfig as v
# default
v.xor_xnor()
<!-- using params -->
v.xor_xnor(subs=2, size=5, fill_color='#fa8069', bg_color='#fae5e1',
font_size=25, title_a='P XOR Q', set_a='P', set_b='Q')
NOT A, NOT B Venn diagram
import vennfig as v
# default
v.not_not()
# using params
v.not_not(subs=3, size=5, fill_color='#e8e815', bg_color='#f2f2aa', font_size=25,
title_b='NOT Q', set_a='P', set_b='Q')
A NOT B, B NOT A Venn diagram
import vennfig as v
# default
v.x_not_y()
# using params
v.x_not_y(subs=3, size=5, fill_color='#d4812f', bg_color='#e3dad1', font_size=25,
title_b='P NOT Q', set_a='P', set_b='Q')
Implication Venn diagram
import vennfig as v
# default
v.implication()
# using params
v.implication(subs=3, size=5, fill_color='#5ba870', bg_color='#d7f5df', font_size=25,
title_b='Q ⇒ P', set_a='P', set_b='Q')
Mutually exclusive Venn diagram
import vennfig as v
# default
v.mut_exclusive()
# using params
v.mut_exclusive(size=10, fill_color='#2d5c91', bg_color='#e1e8f0', font_size=25,
title='Mutually exclusive: P∩Q=∅', set_a='P', set_b='Q')
Complement Venn diagram
import vennfig as v
# default
v.complement()
# using params
v.complement(subs=2, size=5, fill_color='#3eacb5', bg_color='#c1d9db', font_color='#d40f19',
font_size=25, title_a='Complement P', set_a='P', set_b="P'")
Subsets Venn diagram
import vennfig as v
# default
v.subsets()
# using params
v.subsets(size=5, fill_color='#f5b705', bg_color='#f7edd0', font_size=20,
title='Subsets of P', set_a='P', set_b='Q')
Metadata
Release files for vennfig 0.2.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| vennfig-0.2.3.tar.gz | 6.2 kB | Without provenance | Details for vennfig-0.2.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| vennfig-0.2.3-py3-none-any.whl | Python 3 | none | any | Details for vennfig-0.2.3-py3-none-any.whl |
Total release size: 20.4 kB
Release files / vennfig-0.2.3.tar.gz
| Download URL | vennfig-0.2.3.tar.gz |
|---|---|
| Size | 6.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d8c8782d1103cd33a6bf2adfa17b621d05f0e64f3b1e1937619d91878f3ec51e
|
|
BLAKE2b-256 checksum How to use checksums |
e5a747f734ad3f1cd77bc6e399f7d51778ffe4354f0986498f326d76474cbcbd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.2
|
Release files / vennfig-0.2.3-py3-none-any.whl
| Download URL | vennfig-0.2.3-py3-none-any.whl |
|---|---|
| Size | 14.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
aebdfbe12620774d95580696fc2bd1119cf84a17c34eb0f855003610c82439f1
|
|
BLAKE2b-256 checksum How to use checksums |
85b8546ea42d3a77717af5a47025b7b6e817d067ada423ab18c7f845f4c6bce1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.2
|
Security for vennfig 0.2.3
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.