Changing the tick label font family


I stand corrected - the phrase should be “fairly kludgy” though
“cludgy” might not be that far off when describing my



At 15:03 07/11/2006, you wrote:

A cludgy is an outside loo

Etrade Griffiths <etrade.griffiths@…312…> 2006/11/07 04:54 PM >>>
Sorry, another really basic matplotlib question … how do I set the font
family of the axis tick labels? I am using wxPython/wxMpl and not the
pylab interface so am trying to avoid getp/setp. I could do this using
matplotlib.rc but want to do it programatically
I tried
d = { ‘family’ : ‘sans-serif’ }
ax1.set_xticklabels(xt, d)
But Python goes haywire … There has to be a simpler way but not found it yet.
I am trying to do the same for the legend properties. So far we have
fig.legend(lines, titles, ‘upper right’, prop=p)
but this looks fairly cludgy - is there a more elegant way of doing the
same thing?
Thanks in advance
Alun Griffiths
----------------! ---------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo

Matplotlib-users mailing list

This message is subject to the CSIR’s copyright, terms and conditions and e-mail legal notice.
Views expressed herein do not necessarily represent the views of the CSIR.
CSIR E-mail Legal Notice
CSIR Copyright, Terms and Conditions
For electronic copies of the CSIR Copyright, Terms and Conditions and the CSIR Legal Notice
send a blank message with “REQUEST LEGAL” in the subject line to CSIR CallCentre
This message has been scanned for viruses and dangerous content by MailScanner,

and is believed to be clean.