Skip to main content

Code for plotting multidimensional marginal 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.10.0.tar.gz (35.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

trianglechain-0.10.0-py3-none-any.whl (48.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: trianglechain-0.10.0.tar.gz
  • Upload date:
  • Size: 35.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.16

File hashes

Hashes for trianglechain-0.10.0.tar.gz
Algorithm Hash digest
SHA256 2e01f55ef34c4f46d533dd95f807b46235680f1d21862cd519b46dd904f9a111
MD5 0b818a188c1819c8a734ad2138d4a045
BLAKE2b-256 5f6cb822d8425e9b19a4980262b4d012e24d50a8b077842c9a2841cbda6362d5

See more details on using hashes here.

File details

Details for the file trianglechain-0.10.0-py3-none-any.whl.

File metadata

  • Download URL: trianglechain-0.10.0-py3-none-any.whl
  • Upload date:
  • Size: 48.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.16

File hashes

Hashes for trianglechain-0.10.0-py3-none-any.whl
Algorithm Hash digest
SHA256 eba5636ae5bd6e39d5eb06a6759b3b0cc0771af63ef54ed12047a91cface6e49
MD5 d3f21013088b5451985ba1429f54eff0
BLAKE2b-256 10a11554c0643731affd5793da46bea8d89a97c9d88376409ccbd7f81987eff6

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