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

Uploaded Source

Built Distribution

hoop_diagram-0.0.2-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: hoop_diagram-0.0.2.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

Hashes for hoop_diagram-0.0.2.tar.gz
Algorithm Hash digest
SHA256 c4d469c4cff6e046ec3aad68b318260dccfe5a4b5497c351136607f5610d3daf
MD5 f0bbe2d4fcd8654195cfeaea711dc1d7
BLAKE2b-256 35676e14f9304a7279188cacafa176d7af2ff08667052de8454fe7acce2b6b18

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hoop_diagram-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 5ef95aaf69ef4cc601c80defe4c543db51c399540abd4701b5f0f24c4e085209
MD5 f784e8415c3526fcc36858eabac63514
BLAKE2b-256 092819adf61f6cbd1fde165baa272c311db0727b78c8e5f5cb99ed2c93e33275

See more details on using hashes here.

Supported by

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