On Mon, Mar 12, 2012 at 8:04 AM, Neal Becker <ndbeck...@gmail.com> wrote:

> I have a figure with a semilogy plot.  I need to make more room on the
> bottom to
> add a bunch of figtext, which is 4 lines of text.
>
> With the defaults, the text overprints the x-axis.
>
> What is a suggested way to fix this?  (Ideally, mpl would calculate the
> appropriate sizes for me so things don't overprint).
>
>
Set fig.tight_layout to automatically make room.  Note there is a bug in
the latest released matplotlib in which tight layout doesn't include all
text objects, but this is fixed in git v1.1.x branch and will be included
in the next release.

You can also use the "subplots_adjust" functionality to increase the
default spacing between your axes


http://matplotlib.sourceforge.net/api/figure_api.html#matplotlib.figure.Figure.subplots_adjust

eg,

  fig.subplots_adjust(left=0.3, wspace=0.2)

JDH
------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to