Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

Plot bananas from combined MCMC (Markov Chain Monte Carlo) chains. For example, Planck or WMAP satellite likelyhood samples.

Project Description

A simple tool for making banana plots from several multi-dimensional point datasets.

The term banana here refers to the usual shape of the contours of two feature projection of the datasets. See the gallery to see the graphical motivation.

We’d like a tool to drive matplotlib. Declarative.

The distribution of points are internally modelled with a gaussian mixture model.

Gallery (Plots that shall be able to make)

Here is an example code:

which produces the following two figures.


This is an ongoing work.

Martin White suggested the project in August of 2016.

Yu Feng discussed the project as an Hack at the AstroHackWeek 2016 with Brigitta Sipocz, Dan Foreman-Mackey, and Jake VanderPlas.

Three major outcomes:

  • Histograms capture tails much better than mixture of gaussians. We currenlty do not support histograms.
  • if we can model the MCMC as a mixture of gaussian, then there probably is a easier way to model the likelihood than running MCMC.
  • In addition, we shall explore a declaritive way of describing a plot that supports more complicated modelling. Vega-Lite does not appear to support this.

The scaffold of the project is roughly based on but we use from numpy c.f.

Release History

Release History

This version
History Node


History Node


History Node


Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
bananaplots-0.0.3.tar.gz (4.7 kB) Copy SHA256 Checksum SHA256 Source Sep 6, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting