|
From: Robert K. <rk...@uc...> - 2005-11-08 23:48:55
|
Paul Barrett wrote: > On 11/8/05, *Cory Davis* <cd...@st... > <mailto:cd...@st...>> wrote: > > Thanks Robert, > Unfortunately I can't easily do this on my work machine. Our sys-admins > installed matplotlib release version 0.83.2. If your change is already > in 0.84 I can get them to upgrade, but I don't think they are so > keen on > CVS. Can you suggest a quick hack in the meantime? > > Have you read this page: http://matplotlib.sourceforge.net/fonts.html ? It used to be that those settings were not honored when using (La)TeX. 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. -- Robert Kern rk...@uc... "In the fields of hell where the grass grows high Are the graves of dreams allowed to die." -- Richard Harter |