https://github.com/adrn/triangle.py
Make a corner plot of samples.
Science Score: 23.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
○codemeta.json file
-
○.zenodo.json file
-
✓DOI references
Found 7 DOI reference(s) in README -
✓Academic publication links
Links to: zenodo.org -
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (9.6%) to scientific vocabulary
Last synced: 10 months ago
·
JSON representation
Repository
Make a corner plot of samples.
Basic Info
- Host: GitHub
- Owner: adrn
- License: other
- Language: Python
- Default Branch: master
- Size: 13.7 MB
Statistics
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
- Releases: 0
Fork of dfm/corner.py
Created about 13 years ago
· Last pushed over 4 years ago
Metadata Files
Readme
License
README.rst
triangle.py
===========
Make some beautiful corner plots.
Corner plot /ˈkôrnər plät/ (noun):
An illustrative representation of different projections of samples in
high dimensional spaces. It is awesome. I promise.
Built by `Dan Foreman-Mackey `_ and collaborators (see
``triangle.__contributors__`` for the most up to date list). Licensed under
the 2-clause BSD license (see ``LICENSE``).
Installation
------------
Just run
::
pip install triangle_plot
to get the most recent stable version.
Usage
-----
The main entry point is the ``triangle.corner`` function. You'll just use it
like this:
::
import numpy as np
import triangle
ndim, nsamples = 5, 10000
samples = np.random.randn(ndim * nsamples).reshape([nsamples, ndim])
figure = triangle.corner(samples)
figure.savefig("triangle.png")
With some other tweaks (see `demo.py
`_) you can get
something that looks awesome like:
.. image:: https://raw.github.com/dfm/triangle.py/master/triangle.png
By default, data points are shown as grayscale points with contours.
Contours are shown at 0.5, 1, 1.5, and 2 sigma.
Attribution
-----------
.. image:: https://zenodo.org/badge/doi/10.5281/zenodo.11020.png
:target: http://dx.doi.org/10.5281/zenodo.11020
If you make use of this code, please `cite it
`_.
License
-------
Copyright 2013, 2014 Dan Foreman-Mackey
triangle.py is free software made available under the BSD License.
For details see the LICENSE file.
Owner
- Name: Adrian Price-Whelan
- Login: adrn
- Kind: user
- Location: NYC
- Company: Flatiron Institute
- Website: adrian.pw
- Repositories: 124
- Profile: https://github.com/adrn