Skip to main content

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)

Source distribution for visualize-volume 0.0.4
File Size Uploaded
visualize_volume-0.0.4.tar.gz 4.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for visualize-volume 0.0.4
File Interpreter ABI Platform
visualize_volume-0.0.4-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

0.0.4 This release

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

0.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page