Skip to main content

Tool for visualising 3D vector and scalar fields

Project description

ThreeDViewer is a plotting tool for visualizing 3D scalar and vector fields in python.

Installation

ThreeDViewer can be installed through pip:

(.venv) $ pip install ThreeDViewer

Documentation

Comprehensive documentation is available online at readthedocs.

Quickstart

To view a 3D scalar, vector or orientation field and slice all axes interactively, use

ThreeDViewer.plot_3d(scalar_field)

For vector and orientation fields, each pixel will have a hue according to the vector’s direction and a lightness depending on the into-the-plane (bright) and out-of-plane (dark) components. This color adjusts according to the viewing axis, but can be kept constant across different axes by setting the argument const_color to True.

An example vector field is included in the package and the resulting plots are shown below

Middle slice along the z-axis of a magnetic cylinder with a vortex topology that points into the plane Middle slice along the y-axis of

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

threedviewer-0.2.1.tar.gz (594.3 kB view details)

Uploaded Source

Built Distribution

threedviewer-0.2.1-py3-none-any.whl (595.1 kB view details)

Uploaded Python 3

File details

Details for the file threedviewer-0.2.1.tar.gz.

File metadata

  • Download URL: threedviewer-0.2.1.tar.gz
  • Upload date:
  • Size: 594.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for threedviewer-0.2.1.tar.gz
Algorithm Hash digest
SHA256 0be0d9bef0ace010aabbbae1e8b08c8bdfb7882bc5b76d21e1c69850a5df1e1e
MD5 b12455674f5ce1f67e66f6d9dc8cf0af
BLAKE2b-256 7bdf5da7c0ae87b016c996dbcbf7558a45b25c6edf7447863c21c184d4a137e3

See more details on using hashes here.

Provenance

The following attestation bundles were made for threedviewer-0.2.1.tar.gz:

Publisher: release.yml on apseros/ThreeDViewer

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file threedviewer-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: threedviewer-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 595.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for threedviewer-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 fa58d316fa0fd97239f0b08a26456e389a982becd08d412aa493429f8517b122
MD5 28b1a6474fec5db8209bcdc67a9c78c3
BLAKE2b-256 ada60f55344a91d04ab15b65692940062d3b7165bac8b103a3e7c6a9cff2b276

See more details on using hashes here.

Provenance

The following attestation bundles were made for threedviewer-0.2.1-py3-none-any.whl:

Publisher: release.yml on apseros/ThreeDViewer

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page