From: Ken M. <mc...@ii...> - 2005-05-27 17:29:02
|
Meesters, Christian wrote: > It's me again ... I still do not find my way out of the problem on how I can > apply a format to the numbering of an axis. I am using the WXAgg backend and > this is my code: It sounds like you tring to change the formatting of the tick labels of the axes. I believe that the RC parameter `tick.labelsize' will do the trick if this is all you need. There are doubtless a slew of other tick-related options. If you're trying to do something more complicated, like setup complicated font properties for the labels, the following approach might work. def fontify_ticks(axes, fp): xticks = axes.xaxis.get_major_ticks() + axes.xaxis.get_minor_ticks() yticks = axes.yaxis.get_major_ticks() + axes.yaxis.get_minor_ticks() for t in xticks + yticks: t.label1.set_fontproperties(fp) # outer/upper tick label t.label2.set_fontproperties(fp) # inner/lower tick label I hope this helps. Ken |