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

Uploaded Python 3

File details

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

File metadata

  • Download URL: hoop_diagram-0.0.5.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.5.tar.gz
Algorithm Hash digest
SHA256 a770f10140242ce9fb2f9435824c22eb4c15b7aeafc2742accbfc875d4b77dd6
MD5 f7dbc41560e79f6af93ece9d4e71c82f
BLAKE2b-256 19a3f33fa53d26f283de7e0371e285cb6d43652b358bac1d55f7c7e71ca98bd6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: hoop_diagram-0.0.5-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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 8ef514060b4adf6142947db652a55776659fc15b9f8a6ab1625311822c5affb8
MD5 f33bbf487bdd3645b3cc1a522bac6351
BLAKE2b-256 7eedaf447df766b5fa828a02fd7ec58c4c392a3b514539e37142f817b6a75ef1

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