On Thu, Jun 19, 2008 at 12:36:02PM -0500, John Hunter wrote:
> On Thu, Jun 19, 2008 at 11:02 AM, John Hunter <[EMAIL PROTECTED]> wrote:
>
> >> I want to adjust the x position of my ylabel, like
> >>
> >>  subplot(111)
> >>  ylabel('YLabel', x=-.25, y=.75)
> >>
> >> the 'y=.75' argument is applied but the 'x=-.2' argument has no affect.
> >> But why? Have you any idea to do this?
> >
> > The x position is automatically determined by the size of the
> > yticklabels.  We should provide a means to override this x position,
> > but it is not possible currently.
>
> Since our typical mantra is "we don't do much autolayout but we make
> it possible for you to layout your figure as you like", I wasn't
> satisfied with my answer, so I committed a patch to svn which supports
> setting the label coords.  See the example below

Oh, thank you very much. The

  gca().yaxis.set_label_coords(x, y)

command works fine for me :-)

But one qusetion. I think the user interface

  ylabel('yLabel', xpos, ypos)

would be better. So I would do somethink like this in ylabel()

  if xpos is not None:
      self.set_label_coords(xpos, ypos)

What do you think?

Many thanks,

  Friedrich


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to