MPL 0.91.2: bottom of xlabel chopped off

Hi,

Sorry if this is in a FAQ somewhere–my initial attempts to find a solution have failed.

I am using matplotlib version 0.91.2. When I use savefig to create a plot in which the xlabel text has any kind of “descender” (e.g. “$x_1$”, or even simply a “j”), the lower part of the label is chopped off by the bottom edge of the plot. Any suggestions for avoiding this? (If this is a known bug that has been fixed in a later version, is there a relatively simple workaround for 0.91.2? Eventually I’ll upgrade, but I’d like to get my plots finished today.)

Thanks for any suggestions or pointers,

Warren

Is it just that the label too close
to the border?

"Warren Weckesser"
<warren.weckesser@…287…>

Sent by: matplotlib-users-bounces@lists.sourceforge.net
13/08/2008 01:13 PM

To

matplotlib-users@lists.sourceforge.net
cc

Subject

[Matplotlib-users] MPL 0.91.2: bottom
of xlabel chopped off

Hi,

Sorry if this is in a FAQ somewhere–my initial attempts to find a solution
have failed.

I am using matplotlib version 0.91.2.
When I use savefig to create a plot in which the xlabel text has
any kind of “descender” (e.g. “$x_1$”, or even simply
a “j”), the lower part of the label is chopped off by the bottom
edge of the plot. Any suggestions for avoiding this? (If this
is a known bug that has been fixed in a later version, is there a relatively
simple workaround for 0.91.2? Eventually I’ll upgrade, but I’d like
to get my plots finished today.)

Thanks for any suggestions or pointers,

Warren

···

This email has been scanned by the MessageLabs Email Security System.

For more information please visit http://www.messagelabs.com/email

______________________________________________________________________`-------------------------------------------------------------------------

This SF.Net email is sponsored by the Moblin Your Move Developer’s challenge

Build the coolest Linux based applications with Moblin SDK & win great
prizes

Grand prize is a trip for two to an Open Source event anywhere in the world

http://moblin-contest.org/redirect.php?banner_id=100&url=/_______________________________________________

Matplotlib-users mailing list

Matplotlib-users@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/matplotlib-users

`

UNITED GROUP

This email message is the property of United Group. The information in this email is confidential and may be legally privileged. It is intended solely for the addressee. Access to this email by anyone else is unauthorised. If you are not the intended recipient, you may not disclose, copy or distribute this email, nor take or omit to take any action in reliance on it. United Group accepts no liability for any damage caused by this email or any attachments due to viruses, interference, interception, corruption or unauthorised access.

If you have received this email in error, please notify United Group immediately by email to the sender’s email address and delete this document.

raise the "bottom" of your subplots

    fig = figure()
    fig.subplots_adjust(bottom=0.2)

the default setting can be controlled in your matplotlibrc file
(http://matplotlib.sf.net/matplotlibrc)

···

On Tue, Aug 12, 2008 at 10:13 PM, Warren Weckesser <warren.weckesser@...287...> wrote:

I am using matplotlib version 0.91.2. When I use savefig to create a plot
in which the xlabel text has any kind of "descender" (e.g. "$x_1$", or even
simply a "j"), the lower part of the label is chopped off by the bottom edge
of the plot. Any suggestions for avoiding this? (If this is a known bug
that has been fixed in a later version, is there a relatively simple
workaround for 0.91.2? Eventually I'll upgrade, but I'd like to get my
plots finished today.)