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

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to