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 | |
|---|---|---|---|
| quaternary_plots-0.1.0.tar.gz | 6.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| quaternary_plots-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
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
|