Code to plot multidimensional distributions
Project description
trianglechain
Code for plotting multidimensional marginal distributions. If you use it, please cite arXiv-2203.09616 and arXiv-2207.01627.
Basic Usage
To plot a standard triangle plot, you use
from trianglechain import TriangleChain
import numpy as np
# generate samples
samples = np.random.multivariate_normal(
mean=np.zeros(3),
cov=np.diag(np.ones(3)),
size=(10000)
)
tri = TriangleChain()
tri.contour_cl(samples);
The input data can be rec arrays, numpy array, pandas dataframes or dictionaries. For more example plots, see the documentation
Credits
This package was created by Tomasz Kacprzak and further developed and extended by Silvan Fischbacher. The package is maintained by Silvan Fischbacher: silvanf@phys.ethz.ch.
Contributions
Contributions are welcome, and they are greatly appreciated! Every little bit helps, and credit will always be given.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file trianglechain-0.7.1.tar.gz
.
File metadata
- Download URL: trianglechain-0.7.1.tar.gz
- Upload date:
- Size: 43.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 37b76eb362cd6d3116e034e9fe4a4f9952829891a916684105cdddc6fc297e44 |
|
MD5 | 9b8f77c7b9692ea30047c3180a5af687 |
|
BLAKE2b-256 | 0decf68f3fe6947211a091d3f467f1ae17eb0be8b4c4f9c1adbb5366025e567c |