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 guessing as what I mentioned above.
Cheers
On Tue, Jul 30, 2013 at 10:13 AM, K.-Michael Aye <kmichael....@gmail.com>wrote:
> 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(arange(10))
> ax = gca()
>
> fig, axes = subplots(2,2)
>
> axes[0,0].set_axes(ax)
>
> If the above is correct, how can I make it show up now? fig.show() did
> not work and fig.draw() needs an artist and a renderer which I am
> unsure where to get them from?
>
> Any hints, or which docs to read as usual apprectiated!
> Michael
>
>
>
>
>
> ------------------------------------------------------------------------------
> Get your SQL database under version control now!
> Version control is standard for application code, but databases havent
> caught up. So what steps can you take to put your SQL databases under
> version control? Why should you start doing it? Read more to find out.
> http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk
> _______________________________________________
> Matplotlib-users mailing list
> Matplotlib-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
------------------------------------------------------------------------------
Get your SQL database under version control now!
Version control is standard for application code, but databases havent
caught up. So what steps can you take to put your SQL databases under
version control? Why should you start doing it? Read more to find out.
http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users