trianglechain

image image Latest Release PyPI version image image

Code for plotting multidimensional marginal distributions. If you use it, please cite arXiv-2203.09616 and arXiv-2207.01627.

Source

Documentation

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.

Contents:

Feedback

If you have any suggestions or questions about trianglechain feel free to email me at silvanf@phys.ethz.ch.

If you encounter any errors or problems with trianglechain, please let me know!

Code Coverage Report

html report