If you want full control of label coordinates, you need to use
"Axis.set_label_coords" method. For example,

ax = gca()
ax.xaxis.set_label_coords(0.5, -0.1)

And alternative way is to adjust the padding between the axis and the label.

ax.xaxis.labelpad = 0

Regards,

-JJ


On Mon, Mar 21, 2011 at 3:27 AM, andes <czuni...@yahoo.com> wrote:
> x = linspace(0,1,10)
> y = x**2
> plot(x, y)
> xlabel('xname', position=(0.5,0.1)) #<------
> ylabel('yname', position=(0.1,0.5)) #<------

------------------------------------------------------------------------------
Enable your software for Intel(R) Active Management Technology to meet the
growing manageability and security demands of your customers. Businesses
are taking advantage of Intel(R) vPro (TM) technology - will your software 
be a part of the solution? Download the Intel(R) Manageability Checker 
today! http://p.sf.net/sfu/intel-dev2devmar
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to