Jason Sewall wrote: > While I'm at it, I might as well as about image dimensions vs. axes limits. > > If I change ax.axis('equal') manually to the correct bounding box of > the visible stuff (i.e. ax.axis([1.25, 5, 0, 6])), I then get an image > that is distorted, presumably to fit some pre-set aspect ratio. Is > there a way to fix this, too? I guess what I'd like is a way to say: > "When you save or render this image, set the output image dimensions > to be appropriate to aspect ratio x (usually 1:1 for me) and the > current axis setting"
Use the Axes.set_aspect() method for full control of the aspect ratio, and of what gets changed to preserve that aspect ratio. Eric > > I've used matplotlib for more than a few projects, but this aspect of > it has eluded me. > > Thanks for all your help, > Jason ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users