From: Jouni K. S. <jk...@ik...> - 2009-04-28 05:39:32
|
Thomas Robitaille <tho...@gm...> 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 |