|
From: <jas...@cr...> - 2009-09-18 17:37:55
|
John Hunter wrote: > On Fri, Sep 18, 2009 at 11:44 AM, Jae-Joon Lee <lee...@gm...> wrote: > >> I don't think your approach will work in general. >> When you move an axes from one figure to the other, you have to update >> the transform attributes of all the artists, which, I think, could be >> tricky to do for general cases. >> > > I agree that this would be difficult with the existing code base, but > it would be something that is nice to support. Perhaps we can think > about adding support for a fig.move_axes_to(otherfig) method that > reconnects all the wiring. We would of course have to be very careful > about all the child artists, but this would be a good thing to get > right. > Okay. I was hoping that maybe you would say the right way to do this was using inset_axes or something (http://matplotlib.sourceforge.net/examples/axes_grid/inset_locator_demo.html), but I think I understand from the comments why, for example, the ticks were all off in my example. I guess we'll put this functionality in Sage on hold pending the functionality you mention above... Thanks, Jason |