Re: [Matplotlib-users] get_position vs set_position

2009-07-09 Thread Matthias Michler
Hi Robin, On Wednesday 08 July 2009 18:48:04 Robin wrote: > On Wed, Jul 8, 2009 at 4:00 PM, Matthias Michler wrote: > > What version of matplotlib do you use? > > I think I am up to date. > > > For me the following works: > > > > ax.set_position(ax.get_position()) > > That works for me to - the p

Re: [Matplotlib-users] get_position vs set_position

2009-07-08 Thread Matthias Michler
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, heigh

[Matplotlib-users] get_position vs set_position

2009-07-08 Thread Robin
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 tweakin