Re: [Matplotlib-users] long legend gets truncated if put outside

2010-02-05 Thread ealyaz
> On Fri, Feb 5, 2010 at 10:10 AM, Eymen Alyaz > wrote: >> Is there a way to automatically correct the area of figure and resize it >> such that every box drawn is visible? > > If you're only interested in the saved ouput, you may use > "bbox_inches" option of "savefig". It does not change the siz

Re: [Matplotlib-users] long legend gets truncated if put outside

2010-02-05 Thread Jae-Joon Lee
On Fri, Feb 5, 2010 at 10:10 AM, Eymen Alyaz 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 h

[Matplotlib-users] long legend gets truncated if put outside

2010-02-05 Thread Eymen Alyaz
Hello, please try this. from matplotlib.pyplot import * plot([1,2,3], label="very lng label") plot([3,2,1], label="very lng label2") legend(bbox_to_anchor=(1.05, 1), loc=2, borderaxespad=0.) show() The code puts a legend with very long label text outside the figure. When drawing