Euler diagrams in python
Project description
Euler's diagrams are non-empty Venn's diagrams. For further information about:
- the library: on URL https://eule.readthedocs.io;
- Euler diagrams: on wikipedia article https://en.wikipedia.org/wiki/Euler_diagram
Motivation
How to install
We run the command on desired installation environment:
pip install eule
Minimal example
We run command python example.py
on the folder with file example.py
and following content:
#!/usr/bin/env python
import eule
set = {
'a': [1, 2, 3],
'b': [2, 3, 4],
'c': [3, 4, 5],
'd': [3, 5, 6]
}
diagram = eule.euler(set)
# Euler dictionary:
# {
# ('a', 'b'): [2],
# ('b', 'c'): [4],
# ('a', 'b', 'c', 'd'): [3],
# ('d',): [6],
# ('c', 'd'): [5],
# ('a',): [1]
# }
print(diagram)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
eule-0.3.5.tar.gz
(5.2 kB
view hashes)
Built Distribution
eule-0.3.5-py3-none-any.whl
(5.7 kB
view hashes)