|
From: Ryan K. <rya...@gm...> - 2005-11-16 20:08:49
|
I know correctly understand your problem, but I don't know how to fix
it. It seems you need a pad setting for the distance from the axis
label to the tick mark labels, but I don't see one in the rc file.
Anyone else?
Ryan
On 11/16/05, Christian David Ott <chr...@gm...> wrote:
> Hi Ryan,
>
> On 11/16/05, Ryan Krauss <rya...@gm...> wrote:
> > I am confused as to what the problem is. Are you saying that your
> > axis label is running into you tick label? Can you post a little
> > piece of a png showing the problem you are trying to solve?
>
> sorry, I don't know how to post a png to the mailinglist. Do I just
> have to attach it to my response? Anyway, the below code generates a
> plot that reproduces my problem. The y-axis label is to close to the
> y-axis tick labels (though not overlapping). I would like to shift the
> y-axis label further away from the y-axis tick labels.
>
> - Christian
>
> -------------
>
> #!/usr/bin/python
> from pylab import *
> from matplotlib import rcParams
>
> plot([1,2,3,4], [1,4,9,16], 'ro')
> xlabel("something",size=3D30)
> ylabel("something else",size=3D30)
> xlabels =3D getp(gca(), 'xticklabels')
> setp(xlabels, size=3D25)
> ylabels =3D getp(gca(), 'yticklabels')
> setp(ylabels, size=3D25)
> savefig("testplot.eps")
>
|