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

Re: [Matplotlib-users] Pdf File sizes on newer versions of matplotlib is a lot larger

2013-07-31 Thread Jeffrey Spencer
Yeah, I plot to pcolor a lot but haven't recently so next time I do I'll check. It would make a lot of sense for saving overhead there as you have stated. The overhead doesn't seem to be to big for small plots but was just curious where it was most useful. Cheers, Jeff On Thu, Aug 1, 2013 at 12

Re: [Matplotlib-users] Pdf File sizes on newer versions of matplotlib is a lot larger

2013-07-31 Thread Michael Droettboom
On 07/31/2013 10:38 AM, Jeffrey Spencer wrote: Michael, Pdftocairo is a good tool to know so thanks for that tip. I still think currently it is a regression with the current 'stamp' method to use it on all accounts. I understand in a complicated figure with a bunch of subplots that this would

Re: [Matplotlib-users] Pdf File sizes on newer versions of matplotlib is a lot larger

2013-07-31 Thread Jeffrey Spencer
Michael, Pdftocairo is a good tool to know so thanks for that tip. I still think currently it is a regression with the current 'stamp' method to use it on all accounts. I understand in a complicated figure with a bunch of subplots that this would be beneficial and create smaller code. I don't see

Re: [Matplotlib-users] Pdf File sizes on newer versions of matplotlib is a lot larger

2013-07-31 Thread Michael Droettboom
On 07/30/2013 04:20 PM, Jeffrey Spencer wrote: Michael, Thanks that is very informative. Answers most of the problems I was having and read MEP14 which looks really useful That being said does the ps backend subset the fonts or use collections for drawing (is the collections feature global o