Re: [Matplotlib-users] Automatic margins

2008-08-19 Thread Mathieu Leplatre
On Fri, Aug 15, 2008 at 1:52 PM, Mathieu Leplatre <[EMAIL PROTECTED]> wrote: >> There is a FAQ showing how to do this for tick labels using the >> bounding boxes of the labels. You could do something similar with the >> title bounding box >> >> http://matplotlib.sourceforge.net/doc/html/faq/howto_

Re: [Matplotlib-users] Automatic margins

2008-08-15 Thread Mathieu Leplatre
> There is a FAQ showing how to do this for tick labels using the > bounding boxes of the labels. You could do something similar with the > title bounding box > > http://matplotlib.sourceforge.net/doc/html/faq/howto_faq.html#how-do-i-automatically-make-room-for-my-tick-labels > > JDH > Thank you

Re: [Matplotlib-users] Automatic margins

2008-08-13 Thread John Hunter
On Wed, Aug 13, 2008 at 12:40 PM, Eric Firing <[EMAIL PROTECTED]> wrote: > Mathieu Leplatre wrote: >> Is there a way to automatically guess margins according to chart content ? > > There is nothing like that built into mpl. It is not an easy thing to > do in general--that is, for an arbitrary set

Re: [Matplotlib-users] Automatic margins

2008-08-13 Thread Eric Firing
Mathieu Leplatre wrote: > Is there a way to automatically guess margins according to chart content ? There is nothing like that built into mpl. It is not an easy thing to do in general--that is, for an arbitrary set of axes, labels, widgets, etc. Eric > > Like, in this small example : > > im

[Matplotlib-users] Automatic margins

2008-08-13 Thread Mathieu Leplatre
Is there a way to automatically guess margins according to chart content ? Like, in this small example : import pylab fig = pylab.figure() pylab.plot([1,2,3]) pylab.title('Big One', fontsize=72) topmargin = 0.2 # Auto ? fig.subplots_adjust(top=1.0-topmargin) pylab.show() --