how to control space between ylabel and yticklabel?

Hi, all,

I have a long ylabel that is displayed in two lines. Thus,
the ylabel overlaps with yticklabels. Does anyone know how to control the space
between ylabel and yticklabel? Thank you very much.

Best,

cj

Could you provide some example code that shows this problem -- the
layout is supposed to prevent this from happening.

JDH

···

On 9/19/07, Cizhong Jiang <cuj5@...211...> wrote:

I have a long ylabel that is displayed in two lines. Thus, the ylabel
overlaps with yticklabels. Does anyone know how to control the space between
ylabel and yticklabel? Thank you very much.
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Wed, 19 Sep 2007 19:58:30 -0400, "Cizhong Jiang" <cuj5@...211...>:

I have a long ylabel that is displayed in two lines. Thus, the ylabel
overlaps with yticklabels. Does anyone know how to control the space between
ylabel and yticklabel? Thank you very much.

This should help:
gca().yaxis.LABELPAD=20 # or the value you like

I had the same problem recently and found the solution here:
http://thread.gmane.org/gmane.comp.python.matplotlib.general/3896/focus=3904

···

--
jx

This appears to be undocumented? E.g.,
http://matplotlib.sourceforge.net/matplotlib.axis.html

Cheers,
Alan Isaac

···

On Thu, 20 Sep 2007, jetxee apparently wrote:

gca().yaxis.LABELPAD=20 # or the value you like

Thu, 20 Sep 2007 16:47:14 -0400, Alan G Isaac <aisaac@...310...>:

···

On Thu, 20 Sep 2007, jetxee apparently wrote:
> gca().yaxis.LABELPAD=20 # or the value you like

This appears to be undocumented? E.g.,
http://matplotlib.sourceforge.net/matplotlib.axis.html

I thought it was undocumented, but it appears it is.
It is in `Data and other attributes' of Axis section.

--
jx