Re: [Matplotlib-users] way to copy an axes object into different figures

2013-10-08 Thread ChaoYue
Hi Michael, so finally how it goes? I may use something similar, do you finally make it? cheers, Chao -- View this message in context: http://matplotlib.1069221.n5.nabble.com/way-to-copy-an-axes-object-into-different-figures-tp41623p42203.html Sent from the matplotlib - users mailing list ar

Re: [Matplotlib-users] way to copy an axes object into different figures

2013-07-31 Thread K . -Michael Aye
On 2013-07-31 16:51:44 +, Jeffrey Spencer said: > You can try fig.canvas.draw() to draw but as I have never tried the > above not sure whether it will work. Also this one does not show anything, which makes me start to believe that the axes[0,0].set_axes(ax) could be the step that fails?

Re: [Matplotlib-users] way to copy an axes object into different figures

2013-07-31 Thread K . -Michael Aye
On 2013-07-31 17:02:12 +, Jeffrey Spencer said: > Should have mentioned but the artist is like self in most classes so > really just need to pass in the renderer. > > The renderer can be obtained from fig.canvas.get_renderer() so can pass > this to fig.draw(fig.canvas.get_renderer()). I hav

Re: [Matplotlib-users] way to copy an axes object into different figures

2013-07-31 Thread Jeffrey Spencer
Should have mentioned but the artist is like self in most classes so really just need to pass in the renderer. The renderer can be obtained from fig.canvas.get_renderer() so can pass this to fig.draw(fig.canvas.get_renderer()). I have never done it this way but should have the same results I am gu

Re: [Matplotlib-users] way to copy an axes object into different figures

2013-07-31 Thread Jeffrey Spencer
You can try fig.canvas.draw() to draw but as I have never tried the above not sure whether it will work. Cheers On Tue, Jul 30, 2013 at 10:13 AM, K.-Michael Aye wrote: > Hi! > > Is there a way to copy an axes object into different figures? > The idea would be to first create a valuable plot, sa

[Matplotlib-users] way to copy an axes object into different figures

2013-07-29 Thread K . -Michael Aye
Hi! Is there a way to copy an axes object into different figures? The idea would be to first create a valuable plot, save it on its own into a file, and then add it to a subplots figure as part of an overview? I tried to play with this but can't make it to show up in an pylab session: plot(aran