sans-serif tick labels

I found one more solution which makes use of the sansmath.py style, available at
http://www.tug.org/tex-archive/macros/latex/contrib/misc/sansmath.sty.

To use it with matplotlib I updated the 'sans-serif' member of the font_info
dict:

       'sans-serif': ('cmss', '\usepackage{sansmath}'),

and to the end of sansmath.py I added

\sansmath

to activate sans math mode upon loading. Then, choosing 'sans-serif' as first
sansserif font in .matplotlibrc you get nice serif free math text.

It should be easy to add this to the matplotlib distro.

Christian

I found one more solution which makes use of the sansmath.py style,
available at
http://www.tug.org/tex-archive/macros/latex/contrib/misc/sansmath.sty.

To use it with matplotlib I updated the 'sans-serif' member of the
font_info dict:

       'sans-serif': ('cmss', '\usepackage{sansmath}'),

and to the end of sansmath.py

What is sansmath.py?

I added

\sansmath

to activate sans math mode upon loading. Then, choosing 'sans-serif' as
first sansserif font in .matplotlibrc you get nice serif free math text.

It should be easy to add this to the matplotlib distro.

sansmath.sty is not distributed with tetex, and it doesnt look like it is
included in the mac tex distributions. I'm sorry, but I don't think this is a
viable solution.

Darren

···

On Thursday 23 November 2006 1:21 am, Christian Kristukat wrote: