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_
> 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
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
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
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()
--