From: Florent F. <fa...@lp...> - 2008-05-27 07:50:30
|
Hi, Thanks for the help but I used the tricks you told me and it's not workign either, I removed matlpotlib and reinstalled it and I still have the same different font. On the other hand on a different computer having the same distribution (fedora 8) BUT not up to date in the packages and things work just fine. Maybe it comes from LaTeX, does Matplotlib rely on the LaTeX software or does it own his own version somehow hardcoded. Thanks, FF On Mon, 26 May 2008, John Hunter wrote: > 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 > > |