|
From: John H. <jd...@gm...> - 2008-05-26 15:15:06
|
On Mon, May 26, 2008 at 8:32 AM, Florent Fayette <fa...@lp...> wrote: > Hello, > > I am using matplotlib under Fedora 8 and since an updaet I just realised > that the default font seems to be serif raher than the previously roman > font used in LaTeX, as some people observed it also ? > > How can I come back to the previous font using the simplest solution ? I am not sure what font you used previously, but you can use the font.family setting in the matplotlibrc file (copy this file from site-packages/matplotlib/mpl-data/matplotlibrc you your home directory in the ~/.matplotlib directory and edit it. Eg. font.family : sans-serif # for san serif Since you mentioned latex, you can use latex to generate all the fonts in matplotlib by enabling usetex in matplotlibrc , provided you have latex and dvipng installed. text.usetex : True Finally, if you run your matplotlib test script with --verbose-debug you will get lots of extra information about what settings are used and what fonts are loaded. JDH |