ChrisBeaumont/mpl-decompile — pull request #1 by astrofrog (2012-08-03 19:19:12+00:00)
Title: Proof of concept of logging axes

I had an idea which might be useful in some cases (e.g. glue) where we control the creation of the axes - we can just replace the axes and figure with custom classes that adds the ability to log the user-level calls. I've implemented a very quick proof of concept but we could easily extend this to more commands and to figures. The only minor issue I can think of so far is that I can't find a way to keep track of the instance name, so if we'd want the output to be e.g. ``ax.scatter`` vs ``ax2.scatter``, I'm not sure how we could handle that. Don't feel obliged to merge if you don't want to, but just thought this would be an easy way to show.