Skip to main content

Code to plot multidimensional distributions

Project description

trianglechain

MIT license PyPI pyversions PyPI version Latest Release pipeline coverage

image image Docs Source Code

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.

Project details


Release history Release notifications | RSS feed

This version

0.9.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

trianglechain-0.9.0.tar.gz (14.0 MB view details)

Uploaded Source

File details

Details for the file trianglechain-0.9.0.tar.gz.

File metadata

  • Download URL: trianglechain-0.9.0.tar.gz
  • Upload date:
  • Size: 14.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.6

File hashes

Hashes for trianglechain-0.9.0.tar.gz
Algorithm Hash digest
SHA256 4e63aed8f82bc2fe5150305c19912e6f2c6749bd5be3075b69a56640a112ddfb
MD5 4894f5e580b9a4579da349984439894d
BLAKE2b-256 51337282556f0cca4313c920d8ee53339ea93d99cd095815b0c398ccbd4ac6e6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page