On Fri, Feb 5, 2010 at 10:10 AM, Eymen Alyaz <eal...@mpifr-bonn.mpg.de> wrote: > Is there a way to automatically correct the area of figure and resize it > such that every box drawn is visible? >
Things like axes position is given in normalized figure coordinates, thus while you can change the figure size but it is quite hard to keep things in place. And, no, current mpl does not support that. If you're only interested in the saved ouput, you may use "bbox_inches" option of "savefig". It does not change the size of the figure currently displayed, but it does change the size of the figure that is to be saved. Unfortunately, the released version of mpl will not work. With svn version, you can do l = legend(bbox_to_anchor=(1.05, 1), loc=2, borderaxespad=0.) savefig("a.eps", bbox_inches="tight", bbox_extra_artists=[l.legendPatch]) Regards, -JJ ------------------------------------------------------------------------------ The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away. http://p.sf.net/sfu/theplanet-com _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users