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 corner.__contributors__ for the most up to date list). Licensed under the 2-clause BSD license (see LICENSE).

Installation

Just run

pip install corner

to get the most recent stable version.

Usage

The main entry point is the corner.corner function. You’ll just use it like this:

import numpy as np
import corner

ndim, nsamples = 5, 10000
samples = np.random.randn(ndim * nsamples).reshape([nsamples, ndim])
figure = corner.corner(samples)
figure.savefig("corner.png")

With some other tweaks (see demo.py) you can get something that looks awesome like:

https://raw.github.com/dfm/corner.py/master/corner.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

https://zenodo.org/badge/doi/10.5281/zenodo.11020.png

If you make use of this code, please cite it.

License

Copyright 2013, 2014 Dan Foreman-Mackey

corner.py is free software made available under the BSD License. For details see the LICENSE file.

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

corner-1.0.0.tar.gz (8.8 kB view details)

Uploaded Source

File details

Details for the file corner-1.0.0.tar.gz.

File metadata

  • Download URL: corner-1.0.0.tar.gz
  • Upload date:
  • Size: 8.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for corner-1.0.0.tar.gz
Algorithm Hash digest
SHA256 bbdb499a045b02d05eea54382adbe38bde94d02c2288756008a4135a533f74e9
MD5 608aaf1afa65dbd55ea52c48302b2b91
BLAKE2b-256 03eaa03283f5f8aef92922ddfa43a97b19c0b451b9100b95b3da89399e479c01

See more details on using hashes here.

Provenance

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