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.