Combining figures

Hi,

I have a function fig(x) that returns a subplot instance,
and I’d like to make a new figure by calling this function twice.

For example:
def fig(x):
s = subplot(111)
return s.plot(x)

and i wan’t to do something like:

fig = figure(figsize = (6,12))
fig.add_axes(fig(x1))
fig.add_axes(fig(x2))

ax1, ax2 = fig.get_axes()
ax1.set_position([.125, .5, .75, .4])

But it looks like the position is not understood relative to the new figure size, so it doesn’t work.
Should it or is there a better way to do that ?

Thanks,

David