>>>>> "Engelsma," == Engelsma, Dave <D.E...@La...> writes:
Dave> Hi John, I'm wondering how to set the fontsize of the
Dave> ticklabels on an axis (y axis in this case). I would
Dave> like to do something as shown in the third line of
Dave> code:
Dave> . . . graph_axes.set_xlim([0,24])
Dave> graph_axes.set_ylim([0,MaxHourlyDowntime+100])
Dave> graph_axes.set_yticklabels(fontsize=6) . . .
for label in graph_axes.get_yticklabels():
label.set_size(6)
Note you can also change the default label size "system wide" using
the rc param tick.labelsize - http://matplotlib.sf.net/.matplotlibrc
. You can either change it in the rc file itself, or set it for the
application with, for example
from matplotlib import rc
rc('tick', labelsize=6)
This will affect both the x and y tick labels....
Dave> but that won't work, because I'm not supply a list of
Dave> ticklabels. Is there a simple answer to this? (I've
Dave> looked through the mailing lists and the class library
Dave> documentation with no success...
Dave> Also, attached is a screenshot of an statistical
Dave> application that is almost complete... all of the
Dave> graphing and plotting functions are 100% complete and
Dave> work courtesy of matplotlib. (you had helped me with a
Dave> few issues last year and requested a screen shot...)
Cool -- thanks!
JDH
|