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

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.8.0.tar.gz (13.6 MB view details)

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for trianglechain-0.8.0.tar.gz
Algorithm Hash digest
SHA256 0d7c683314d71336a47a24393553607cad4a07b829c166a9440b88b966cf975f
MD5 8065fb2508326fdfb1363fa4861fe28e
BLAKE2b-256 db45c5b1592e4705face5c6c14716b0e149c29195a2a2632d14b109562aa581b

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