|
From: Eric F. <ef...@ha...> - 2014-05-12 07:23:25
|
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 recombine them, so fig3 is composed of the first row > in fig1 (i.e., axs1[0, 0] and axs1[0, 1]) and second row in fig2 > (i.e., axs2[1, 0] and axs2[1, 1])? > > Currently, all I could do is to re-plot them. I am curious about > whether there is a way that I can just move axes around and re-combine > them to make new figures. Thanks! No, there is no facility for doing this. The Axes class is always initialized with a Figure instance. The Axes and Figure are quite tightly tied together via transforms. Eric > > -Shawn > > |