Skip to main content

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()
Standard Visualization Visualization with Highlighted Element Visualization with Highlighted Set

References

Project details


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.4.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hoop_diagram-0.0.4-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file hoop_diagram-0.0.4.tar.gz.

File metadata

  • Download URL: hoop_diagram-0.0.4.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for hoop_diagram-0.0.4.tar.gz
Algorithm Hash digest
SHA256 367c2e9f7957d75d0ad5e859f5c544f56c7d53dba79aa38eec0c353d38f1a95a
MD5 bf7d43b07b29a613ab9ed16e7d1cdae0
BLAKE2b-256 820fb5c4ec0a65590d4c0841e07d1a86adcfb5b49c767c9686d705fb08c6c8e0

See more details on using hashes here.

File details

Details for the file hoop_diagram-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: hoop_diagram-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 4.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for hoop_diagram-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 acfed0a4ba7911150b4b66d77f869dfff8ec09bd41a064258700e6f8d54bf5bb
MD5 4d7b923262b3afa50432e336a77dbf4e
BLAKE2b-256 a7a1436fa8076868de4d268d52389dc98ac17fc22a8d1a9f213d2a6840d1013d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page