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
pip install corner
to get the most recent stable version.
The main entry point is the
corner.corner function. You'll just use it
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:
By default, data points are shown as grayscale points with contours. Contours are shown at 0.5, 1, 1.5, and 2 sigma.
If you make use of this code, please cite it.
Copyright 2013, 2014 Dan Foreman-Mackey
corner.py is free software made available under the BSD License. For details see the LICENSE file.