Hi Jouni,

Thanks for your help! Following what you suggested, I've decided to use

ax.text(0.5,-0.13,xlabel,transform  
=ax.transAxes,ha='center',va='center')

Thanks,

Thomas

On 28 Apr 2009, at 01:39, Jouni K. Seppänen wrote:

> Thomas Robitaille <thomas.robitai...@gmail.com> writes:
>
>> This is probably a simple question, but what is the best way to
>> control the vertical positioning of the x-axis label?
>
> Matplotlib tries to set the vertical position automatically based on  
> how
> tall the tick labels are - see how e.g. the commands
>
> setp(getp(gca(), 'xticklabels'), fontsize=2)
> setp(getp(gca(), 'xticklabels'), fontsize=10)
> setp(getp(gca(), 'xticklabels'), fontsize=20)
>
> affect the position. If you're not happy with that, I think your best
> bet is to use figtext instead of xlabel, and perhaps file a bug in the
> matplotlib tracker, explaining how the current positioning is
> insufficient for your needs.
>
> -- 
> Jouni K. Seppänen
> http://www.iki.fi/jks
>
>
> ------------------------------------------------------------------------------
> Register Now & Save for Velocity, the Web Performance & Operations
> Conference from O'Reilly Media. Velocity features a full day of
> expert-led, hands-on workshops and two days of sessions from industry
> leaders in dedicated Performance & Operations tracks. Use code  
> vel09scf
> and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
> _______________________________________________
> Matplotlib-users mailing list
> Matplotlib-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users


------------------------------------------------------------------------------
Register Now & Save for Velocity, the Web Performance & Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance & Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to