visualize_volume
Visualize 3D volume data.
GitHub project: https://github.com/GGN-2015/visualize_volume
Installation
pip install visualize_volume
Usage
import visualize_volume
data3d = visualize_volume.create_centered_cube_3d((64, 64, 64), 24)
visualize_volume.visualize_volume(data3d) # you can fill in your numpy data
Default Values
Argument value_rgba_color_map gives the map from data value to the color (RGBA).
def visualize_volume(data: np.ndarray,
value_rgba_color_map=[
(-5.0, 0.0, 0.0, 0.8, 0.9), # Dark blue
(-4.0, 0.5, 0.0, 0.5, 0.9), # Purple
(-3.0, 1.0, 0.0, 1.0, 0.9), # Magenta
(-2.0, 0.0, 1.0, 1.0, 0.9), # Cyan
(-1.0, 0.0, 0.8, 0.0, 0.9), # Dark green
( 0.0, 0.0, 0.0, 0.0, 0.0), # Transparent
( 1.0, 1.0, 0.0, 0.0, 0.9), # Red
( 2.0, 1.0, 0.843, 0.0, 0.9), # Gold
],
back_ground_color=(0.1, 0.2, 0.3), # Dark slate blue background
back_ground_alpha=1.0
): ...
Metadata
Release files for visualize-volume 0.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| visualize_volume-0.0.4.tar.gz | 4.3 kB | Without provenance | Details for visualize_volume-0.0.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| visualize_volume-0.0.4-py3-none-any.whl | Python 3 | none | any | Details for visualize_volume-0.0.4-py3-none-any.whl |
Total release size: 9.6 kB
Release files / visualize_volume-0.0.4.tar.gz
| Download URL | visualize_volume-0.0.4.tar.gz |
|---|---|
| Size | 4.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
974b3268a5691c93e0506adb663508467e87d82c3374826fb15573a1a45764b9
|
|
BLAKE2b-256 checksum How to use checksums |
679410be389f6dad7f1ce8fe62720bbcbbe8f757e848a9fdc0b2e24c5c6dc038
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.12
|
Release files / visualize_volume-0.0.4-py3-none-any.whl
| Download URL | visualize_volume-0.0.4-py3-none-any.whl |
|---|---|
| Size | 5.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
62456c25ee7278739d73849c72d15c8170fa6a0c4b644e78bb573d3eb955ddc5
|
|
BLAKE2b-256 checksum How to use checksums |
0bd3de6be34e553e6cf7e2f8005d00aebc5b4f1740612cc134b237d1d0fcfeaf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.12
|
Security for visualize-volume 0.0.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.