Font weirdness

Hi,

I noticed a strange behavior and I’m not sure whether it is intended or not.

With the usetex option set to True, the fonts used in ticklabels change when using a custom formatter. So for instance

from pylab import *
rcParams[‘text.usetex’]=True
s = subplot(111)
s.xaxis.set_major_formatter(FormatStrFormatter(’%3.2f’))
savefig(‘test’)

the figure has different fonts in the x and y axes.

HTH and thanks for all the work you put in matplotlib, it’s much appreciated.

David

The fonts look the same to me for both axes. Maybe try deleting your
~/.matplotlibrc/tex.cache?

Darren

···

On Monday 13 August 2007 01:53:40 pm David Huard wrote:

Hi,

I noticed a strange behavior and I'm not sure whether it is intended or
not.

With the usetex option set to True, the fonts used in ticklabels change
when using a custom formatter. So for instance

from pylab import *
rcParams['text.usetex']=True
s = subplot(111)
s.xaxis.set_major_formatter(FormatStrFormatter('%3.2f'))
savefig('test')

the figure has different fonts in the x and y axes.

HTH and thanks for all the work you put in matplotlib, it's much
appreciated.