dfm/triangle.py — pull request #12 by adrn (2013-06-18 15:27:28+00:00)
Title: Allow overplotting on a pre-made figure

This is to address #8 by allowing an optional `fig` kwarg. The user can pass in a pre-made `matplotlib.Figure` object and have triangle overplot on the pre-defined axes.

Example:

fig = triangle.corner(flatchain1, ...)
fig = triangle.corner(flatchain2, ..., fig=fig)