Quaternary Plots
A Python library for creating beautiful quaternary (tetrahedral) compositional plots using Plotly.
Installation
pip install quaternary-plots
Quick Start
import quaternary as quat
import numpy as np
# Create empty tetrahedron
fig = quat.tetrahedron(labels=['CaCO3', 'MgCO3', 'Na2CO3', 'K2CO3'])
# Add data points
compositions = np.array([
[25, 25, 25, 25], # Centroid
[50, 30, 10, 10], # Ca-rich
])
fig = quat.add_points(fig, compositions, name='Samples', color='red')
fig.show()
Features
- 🎯 Plot quaternary compositional diagrams
- 📊 Add points, lines, surfaces, and volumes
- 🔄 Convert between barycentric and Cartesian coordinates
- 🎨 Fully customizable colors, sizes, and styles
- 📱 Interactive 3D visualization
Documentation
See examples/basic_usage.py for more examples.
License
GPL-3.0
Metadata
Release files for quaternary-plots 0.1.0
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 |
|---|---|---|---|---|
| quaternary_plots-0.1.0.tar.gz | 6.3 kB | Without provenance | Details for quaternary_plots-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| quaternary_plots-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for quaternary_plots-0.1.0-py3-none-any.whl |
Total release size: 11.5 kB
Release files / quaternary_plots-0.1.0.tar.gz
| Download URL | quaternary_plots-0.1.0.tar.gz |
|---|---|
| Size | 6.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3ae26fb7792fdb055c58479eb20016e0f48138fee95cfc97d82c1164ee49e3f1
|
|
BLAKE2b-256 checksum How to use checksums |
a4ee712ac1258924bd33b5a0ce658c05c507770fb6b23b68b0e2ef328f4eb361
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.13
|
Release files / quaternary_plots-0.1.0-py3-none-any.whl
| Download URL | quaternary_plots-0.1.0-py3-none-any.whl |
|---|---|
| Size | 5.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2dda93e6a112d8dca823fff8432d0c03ff8006b4f990aa3d5e8427ec8fae93fa
|
|
BLAKE2b-256 checksum How to use checksums |
8e542168abcdf1e92ee10f40104b05db086d1045c929652bb653c39dec82ed53
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.13
|
Security for quaternary-plots 0.1.0
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.