Hi Robin, What version of matplotlib do you use?
For me the following works: ax.set_position(ax.get_position()) The object returned by get_position is "A mutable bounding box.", which is also supported in set_position. Nevertheless set_position supports lists with '[left, bottom, width, height]', too. E.g. ax.set_position([0.2, .4, 0.4, .5]) best regards Matthias On Wednesday 08 July 2009 16:10:37 Robin wrote: > Hi, > > After quite a bit of trial and error I realised that ax.get_position() > is returning numbers in the form a Bbox which are very different to > the numbers you need for ax.set_position(). > > Often I want to use the subplot positioning first, then get the > positions that sets up for some manual tweaking. Is there a way to > convert the output of get_position into the same form as for > set_position? > > Cheers > > Robin ------------------------------------------------------------------------------ Enter the BlackBerry Developer Challenge This is your chance to win up to $100,000 in prizes! For a limited time, vendors submitting new applications to BlackBerry App World(TM) will have the opportunity to enter the BlackBerry Developer Challenge. See full prize details at: http://p.sf.net/sfu/Challenge _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users