On Thu, Apr 2, 2009 at 6:47 AM, oyarsa the old <oyars...@gmail.com> wrote: > Hi, > > Thanks for your reply ! The thread you pointed me to, was useful, though I > didnt uderstand everything in it yet. > However, I found that the following works for what I want ... though it does > what I want, am I making some horrible mistake which will come around and > haunt me later ? > > plsub = subplot(1,1,1) > plaxis = axis([0, n 0, m]) > start = plsub._position.p0 > stop = plsub._position.p1 > > plsub._position.p0 and p1 store the normalised coordinates of the subplot > box, it seems, which is what I need for now.
You are discouraged from using leading underscore attributes like '_position' since the leading underscore designates that they are for internal use and thus not protected against API changes. The public interface is: In [216]: ax = subplot(111) In [217]: p = ax.get_position () In [218]: print p Bbox(array([[ 0.125, 0.1 ], [ 0.9 , 0.9 ]])) In [219]: p.xmin Out[219]: 0.125 JDH ------------------------------------------------------------------------------ _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users