Skip to main content

A fun visualisation library for those that like boxes

Project description

Brickblock: A fun visualisation library for those that like boxes

This is a small library that uses blocks in matplotlib's visually appealing 3D extension - and aims to be the 'seaborn of matplotlib-3D'.

Core abstractions

At the centre of Brickblock is the Space. A Space represents a 3D cartesian coordinate space. It contains objects, and when a user wants a visualisation, they render the current state of the Space - the rendered state is known as a Scene.

There are objects used for composing visualisations in Brickblock, such as the Cube. Objects can be added into the Space with a degree of control over their visual presentation: transparency, colour, line widths. They can also be mutated - and can be selected by name, base vector, or various IDs.

Having these abstractions allows programmers to more easily create animated 3D visualisations, like GIFs. You define a Space, adding and mutating objects to evolve the state, and the Scene objects are persisted to enable sequences of images for use in GIFs.

Contributing

Contributions are more than welcome! There is a very rough TODO in todo.md that outlines both short- and long-term goals for the library. However, there are some rules:

  • Always follow the code of conduct
  • All the tests should be passing with your change
  • Explain your change (PR template coming soon)
  • Add relevant tests and docstrings
  • Format your changes with black

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

brickblock-0.2.5.tar.gz (37.1 kB view details)

Uploaded Source

Built Distribution

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

brickblock-0.2.5-py3-none-any.whl (39.1 kB view details)

Uploaded Python 3

File details

Details for the file brickblock-0.2.5.tar.gz.

File metadata

  • Download URL: brickblock-0.2.5.tar.gz
  • Upload date:
  • Size: 37.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.1 CPython/3.10.12 Darwin/21.6.0

File hashes

Hashes for brickblock-0.2.5.tar.gz
Algorithm Hash digest
SHA256 2b42996153357172d678c6cd29e9fe3f70b70cabd96e1f71ede26d7f57f6a843
MD5 47308063362dc57f2e372564791e99f5
BLAKE2b-256 c7221f25ac9f8d48f2a6767c3dce792f9bb335aeced0f41b517fbfcd7704e99a

See more details on using hashes here.

File details

Details for the file brickblock-0.2.5-py3-none-any.whl.

File metadata

  • Download URL: brickblock-0.2.5-py3-none-any.whl
  • Upload date:
  • Size: 39.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.1 CPython/3.10.12 Darwin/21.6.0

File hashes

Hashes for brickblock-0.2.5-py3-none-any.whl
Algorithm Hash digest
SHA256 ec22661ca0c4eebc8d189e5b13fa8c20655f32b4933669e19f26610beddcef23
MD5 cd5b69e87c4851bd3faa67029e9363b2
BLAKE2b-256 125181a88712e1eb9b46faf50dce4874c125dcf64c13ca580596461a0398ecf4

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