plotly3d
A helper for ploting scatter plots and trajectory plots with plotly.
Krishnaswamy Lab, Yale University
Install
The package can be directly installed via pip:
pip install plotly3d
APIs
Scatter Plots
def scatter(points, colors=None, **kwargs):
"""
Plots 3D scatter plot with optional rescaling, coloring, and customization.
Parameters:
- points: Array of points to plot.
- colors: Optional array of colors for each point.
- scaler: Optional scaler object to rescale points. If None and rescaling is enabled, MinMaxScaler is used.
- **kwargs: Additional optional arguments:
- s (float): Size of the markers.
- alpha (float): Opacity of the markers.
- force_continuous (bool): Force treating colors as continuous even if they seem categorical.
- title (str): Title of the plot.
- filename (str): If provided, saves the plot to this file.
- rescale (bool): If True, rescales points using the provided or default scaler.
- fig (go.Figure): Plotly figure object to which the scatter plot will be added. If None, a new figure is created.
- xtitle (str), ytitle (str), ztitle (str): Titles for the X, Y, and Z axes.
Returns:
- Plotly figure containing the scatter points plotted in 3D space.
"""
Trajectory Plots
def trajectories(trajs, colors=None, **kwargs):
"""
Plots trajectories in 3D space using Plotly, with unique colors for each category and a single legend entry per category.
Parameters:
- trajs: numpy array of shape (a, b, c), where
a: time bins, b: trajectory index, c: space dimension (c=3 for 3D).
Returns:
- Plotly figure containing the trajectories plotted in 3D space.
"""
Metadata
Release files for plotly3d 0.4.12
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 | |
|---|---|---|---|---|
| plotly3d-0.4.12.tar.gz | 5.0 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| plotly3d-0.4.12-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 10.7 kB
Release files / plotly3d-0.4.12.tar.gz
| Download URL | plotly3d-0.4.12.tar.gz |
|---|---|
| Size | 5.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
79cc3cfad63c3d2e34597aa7f4983c49400f17be9d7215913eeb0d49eeccfd35
|
|
BLAKE2b-256 checksum How to use checksums |
031e54dfc16a680149d5496e1a21f2464bae3468df0072718aa2dea062d711e3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.10.13
|
Release files / plotly3d-0.4.12-py3-none-any.whl
| Download URL | plotly3d-0.4.12-py3-none-any.whl |
|---|---|
| Size | 5.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
66adbca21118342b480cc9107e700dfc55b9092a23fcfea27209efa1b12dc809
|
|
BLAKE2b-256 checksum How to use checksums |
07a22f94489533a2fed37fb22ff52b615fbab9ef1c35152c42d4b2a09292f76b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.10.13
|
Security for plotly3d 0.4.12
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.