Visualize set intersections.
Project description
Hoop Diagram
Visualize set intersections.
Features
- highlight elements or set, preserves provided set order
- export diagram to resolution independent SVG file format
- minimal dependencies, built on top of Python native set type
- preview of diagram before exporting
- released under the permissive MIT License
Installation
To install, just run:
pip install hoop-diagram
Usage
import hoop_diagram
diagram = hoop_diagram.visualize.Hoop(sets=[{1, 2}, {3, 4}, {1, 3, 5}, {1, 5}])
diagram.highlight_element(5) |
diagram.highlight_set({1, 2}) |
|
diagram.show() |
diagram.show() |
diagram.show() |
References
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
hoop_diagram-0.0.3.tar.gz
(4.5 kB
view details)
Built Distribution
File details
Details for the file hoop_diagram-0.0.3.tar.gz
.
File metadata
- Download URL: hoop_diagram-0.0.3.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 40bd02968915ef0599843788dcc256ff5516c69b30410d342222e661034922f9 |
|
MD5 | 44ca6b7bf0622bdca37c01e963ef3e23 |
|
BLAKE2b-256 | 6542b37324480b822050b0bc42b9b120996339c6c75549b9dfd551e951f1964e |
File details
Details for the file hoop_diagram-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: hoop_diagram-0.0.3-py3-none-any.whl
- Upload date:
- Size: 4.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f36e7e4357611b93d6cfa8886940ac8b2d942402ecd161889a4b15643f592ed9 |
|
MD5 | 619a4218092e6f2210a5305b3a3fa825 |
|
BLAKE2b-256 | 1a95ddb5c5f8e49fa49dc0b1b825f23159d37ec1fb4a9b575f840d7a4b9dd518 |