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.
Contents:
- Installation
- Usage
- Tutorial: Parameters
- Tutorial: Basic plots
- Tutorial: Plotting multiple chains
- Tutorial: Advanced functions
- trianglechain
- trianglechain package
- Submodules
- trianglechain.BaseChain module
- trianglechain.LineChain module
- trianglechain.RectangleChain module
- trianglechain.TriangleChain module
- trianglechain.bestfit module
- trianglechain.density_estimation module
- trianglechain.limits module
- trianglechain.make_subplots module
- trianglechain.params module
- trianglechain.utils_pj_hpd module
- trianglechain.utils_plots module
- Module contents
- Contributing
- Credits
- History
- 0.9.0 (2025-08-04)
- 0.8.0 (2025-05-27)
- 0.7.1 (2024-10-02)
- 0.7.0 (2024-09-08)
- 0.6.0 (2024-03-27)
- 0.5.1 (2023-09-01)
- 0.5.0 (2023-08-08)
- 0.4.3 (2023-07-01)
- 0.4.2 (2023-06-19)
- 0.4.1 (2023-06-09)
- 0.4.0 (2023-06-05)
- 0.3.1 (2023-05-11)
- 0.3.0 (2023-04-26)
- 0.2.1 (2023-03-20)
- 0.2.0 (2023-02-09)
- 0.1.2 (2023-02-02)
- 0.1.1 (2022-11-24)
- 0.1.0 (2022-10-31)
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!