Re: [Matplotlib-users] xlabel vertical positioning

2009-05-07 Thread Ryan May
On Thu, May 7, 2009 at 3:13 PM, Eric Firing efir...@hawaii.edu wrote: Ryan May wrote: On Tue, Apr 28, 2009 at 9:54 PM, Thomas Robitaille thomas.robitai...@gmail.com mailto:thomas.robitai...@gmail.com wrote: Thanks! I could not find any documentation relating to this, so I was

Re: [Matplotlib-users] xlabel vertical positioning

2009-04-28 Thread Thomas Robitaille
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

Re: [Matplotlib-users] xlabel vertical positioning

2009-04-28 Thread Yong-Duk Jin
You can use 'LABELPAD' to adjust label position. e.g. import pylab hAxes = pylab.axes() pylab.xlabel('test') hAxes.xaxis.LABELPAD = 0 pylab.show() -- Yong-Duk Jin On Tuesday 28 April 2009 14:08:50 Thomas Robitaille wrote: Hi, This is probably a simple question, but what is the best way to

Re: [Matplotlib-users] xlabel vertical positioning

2009-04-28 Thread Thomas Robitaille
Thanks! I could not find any documentation relating to this, so I was wondering whether it would be better to go with a well-documented function such as text or figtext? What would be best to use? Thomas On 28 Apr 2009, at 22:27, Yong-Duk Jin wrote: You can use 'LABELPAD' to adjust label

[Matplotlib-users] xlabel vertical positioning

2009-04-27 Thread Thomas Robitaille
Hi, This is probably a simple question, but what is the best way to control the vertical positioning of the x-axis label? I tried: import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as mpl fig = mpl.figure() ax = fig.add_subplot(111) ax.set_xlabel(Hello,position=(0.5,-0.2))

Re: [Matplotlib-users] xlabel vertical positioning

2009-04-27 Thread Jouni K . Seppänen
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