jakevdp/mpld3 — pull request #92 by jakevdp (2014-03-15 16:26:23+00:00)
Title: BUG: fix axes reset behavior; clean up fig reset

In working on some enhancements, I found that the axes reset() function was broken. While fixing it, I realized that with a small d3 trick we could greatly simplify the figure reset code.

Tested this on all the test plots; it seems to work just fine.