axis labels font size

This is a question about controlling the font size of axis tick labels, in a linear numeric axis.

More specifically it is about this situation: You know how sometimes, when the numeric labels represent very large/small numbers that need scientific notation, the power of 10 exponent is placed separately from the rest of the tick labels, at the high end of the axis? I want to change the size of that separate label. calling xAxisInstance.get_ticklabels(), looping on that, and setting font size, doesn't do it---apparently that one separate label is not included in the return list.

Mike

That label is called the offset. If you do

plot(arange(10)*1e10)
a=gca()
offset = a.yaxis.get_offset_text()

offset is a text object that you can resize, just inspect it's methods.

Darren

ยทยทยท

On Monday 20 March 2006 8:31 pm, MICHAEL P MOSSEY wrote:

This is a question about controlling the font size of axis tick labels, in
a linear numeric axis.

More specifically it is about this situation: You know how sometimes, when
the numeric labels represent very large/small numbers that need scientific
notation, the power of 10 exponent is placed separately from the rest of
the tick labels, at the high end of the axis? I want to change the size of
that separate label. calling xAxisInstance.get_ticklabels(), looping on
that, and setting font size, doesn't do it---apparently that one separate
label is not included in the return list.

Mike

-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live
webcast and join the prime developer group breaking into this new coding
territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
matplotlib-users List Signup and Options

--
Darren S. Dale, Ph.D.
dd55@...163...