Re: [Matplotlib-users] Re-combine different axes to make new figure in matplotlib

2014-05-12 Thread Thøger Rivera-Thorsen
I usually get around this by writing my plotting routines as functions that take Axes objects as input. That way, they don't need to know about the layout of the figure, and I can use the same code for figures with one or more axes. I am working on a project involving a sample of galaxies, and som

Re: [Matplotlib-users] Re-combine different axes to make new figure in matplotlib

2014-05-12 Thread Yuxiang Wang
Hi Eric, Thank you for your very clear explanation. -Shawn On Mon, May 12, 2014 at 3:23 AM, Eric Firing wrote: > On 2014/05/11 7:56 PM, Yuxiang Wang wrote: >> Dear all, >> >> I am curious that whether this is possible in matplotlib: >> >> I first create some figures, with subplots. >> >> import

Re: [Matplotlib-users] Re-combine different axes to make new figure in matplotlib

2014-05-12 Thread Eric Firing
On 2014/05/11 7:56 PM, Yuxiang Wang wrote: > Dear all, > > I am curious that whether this is possible in matplotlib: > > I first create some figures, with subplots. > > import matplotlib.pyplot as plt > fig1, axs1 = plt.subplots(2, 2) > fig2, axs2 = plt.subplots(2, 2) > > And then, could I recombin

[Matplotlib-users] Re-combine different axes to make new figure in matplotlib

2014-05-11 Thread Yuxiang Wang
Dear all, I am curious that whether this is possible in matplotlib: I first create some figures, with subplots. import matplotlib.pyplot as plt fig1, axs1 = plt.subplots(2, 2) fig2, axs2 = plt.subplots(2, 2) And then, could I recombine them, so fig3 is composed of the first row in fig1 (i.e., a