From: Thomas R. <tho...@gm...> - 2009-04-28 05:08:54
|
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)) fig.savefig('test.png') But this doesn't work. Strangely, changing the first position element does shift the label left and right, but changing the second does not move the label vertically. I'm using matplotlib 0.98.5.2 Thanks for any advice! Thomas |