Skip to main content

Make some beautiful corner plots of samples.

Project description

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:

https://raw.github.com/dfm/triangle.py/master/demo.png

Project details


Download files

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

Source Distribution

triangle_plot-0.0.3.tar.gz (4.9 kB view details)

Uploaded Source

File details

Details for the file triangle_plot-0.0.3.tar.gz.

File metadata

File hashes

Hashes for triangle_plot-0.0.3.tar.gz
Algorithm Hash digest
SHA256 dbdc8083cabb7c9f43502365e14e1e879e2bf987de4f351740ae0bb432daf94f
MD5 98bb284786ccc3665fe4d96ed28a00e4
BLAKE2b-256 0fab42e1bbb0ef80025a617b15f3cc1b223fe9b2b3d7451d0093240c23454ba7

See more details on using hashes here.

Supported by

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