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.6.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.6-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for hoop_diagram-0.0.6.tar.gz
Algorithm Hash digest
SHA256 5cfa3e632c797f71139214cdfe47db33c0ad5ca2ed8df49ba74826f5d2cc8303
MD5 7f6034597646a557d1367fd378152f25
BLAKE2b-256 d1f88787c2d7db96a8688abffb7af788a557fcbf53af6915478c1c15d5b28d6a

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for hoop_diagram-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 8ed7470b996b2fb8900b9b2687d304475064c1533bacf143f1ed90873341e55e
MD5 c7eccef12ec039873913ca1e658eaa7c
BLAKE2b-256 a1510b07b35cbc943c1b756f1ec9e6c7363d3f92b969f2fb22e8339562b9d9e7

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