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}) |
|
---|---|---|
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.1.tar.gz
(4.5 kB
view details)
Built Distribution
File details
Details for the file hoop_diagram-0.0.1.tar.gz
.
File metadata
- Download URL: hoop_diagram-0.0.1.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7ec19ed8b4906ed179346e0b5da180ee3f823f83bd6139c7b052c65897a0e377 |
|
MD5 | 7f7e9196489e2967c5e094a550dd834f |
|
BLAKE2b-256 | 455511411f9ec0d300dfad7765a0f11b2b4eeed72163a446d66ee014fe751031 |
File details
Details for the file hoop_diagram-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: hoop_diagram-0.0.1-py3-none-any.whl
- Upload date:
- Size: 5.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 105999d0045c4d9a9c5a0f184929b32ee5b0d2559a68e417f3504c89a57784fb |
|
MD5 | f73bf3a7a16d010733df828e5f980cab |
|
BLAKE2b-256 | bd9cb3c4481af31d80fbe8ac597db74df21bc90ce34eb368b9d7b0510afefce4 |