when using TeX, how can I specify san serif ticklabels

Thanks Robert,

    >> The relevant changes are in texmanager.py (and I don't recall
    >> if they are in 0.84). def get_tex_command(self, tex, fname):
    >> fontcmd = {'sans-serif' : r'{\sffamily %s}', 'monospace' :
    >> r'{\ttfamily %s}'}.get( rcParams['font.family'], r'{\rmfamily
    >> %s}') tex = fontcmd % tex Add that snippet to the method and
    >> you should be good to go.
    >>

    > This is not in 0.84, so I guess I will wait for the next
    > release. Cheers, Cory.

You should just be able to drop the CVS texmanager.py into your
site-packages/matplotlib dir and be off to the races

http://cvs.sourceforge.net/viewcvs.py/matplotlib/matplotlib/lib/matplotlib/texmanager.py?rev=1.31&view=markup

JDH

Hi John,

You should just be able to drop the CVS texmanager.py into your
site-packages/matplotlib dir and be off to the races

http://cvs.sourceforge.net/viewcvs.py/matplotlib/matplotlib/lib/matplotlib/texmanager.py?rev=1.31&view=markup

Yes, but the whole problem is that I don't have superuser priveleges on my work machine. I realise I could have the CVS matplotlib in my own python library in my home directory, but for several reasons we decided that this isn't so nice. The sysadmins have, in some easily manageable way, put matplotlib 0.83.2 on all of the linux machines in our department, which is just great. When some killer feature is added, I can let them know and they can easily do the upgrade, but my impression is they are happier with releases than with CVS, and I don't want to push my luck. Also, its not such a big deal to wait for the next release.

Cheers,
Cory.

···

JDH

--
---------------------------------------------------
Cory Davis
Institute for Atmospheric and Environmental Science
Room 307, Crew Building, Kings Buildings,
University of Edinburgh. Edinburgh EH9 3JN
phone: +44 131 6505092
www: http://www.geos.ed.ac.uk/contacts/homes/cdavis