Re: [Matplotlib-users] how to use different font for serif

2011-12-08 Thread Jonathan Slavin
tboom > > > To: matplotlib-users@lists.sourceforge.net > > > Subject: Re: [Matplotlib-users] how to use different font > for serif > > > Date: Mon, 5 Dec 2011 14:49:09 -0500 > > > > > > What rc

Re: [Matplotlib-users] how to use different font for serif

2011-12-06 Thread Jonathan Slavin
From: Michael Droettboom > > To: matplotlib-users@lists.sourceforge.net > > Subject: Re: [Matplotlib-users] how to use different font for serif > > Date: Mon, 5 Dec 2011 14:49:09 -0500 > > > > What rcParams are you setting? > > > > font.family: serif &g

Re: [Matplotlib-users] how to use different font for serif

2011-12-05 Thread Michael Droettboom
What rcParams are you setting? font.family: serif font.serif: Times New Roman and font.family: Times New Roman both work for me. You have to use the name of the font as specified in the file, not the filename to specify the font (which is probably why "times" is not working for you). Mike

Re: [Matplotlib-users] how to use different font for serif

2011-12-05 Thread Jonathan Slavin
Tony, Thanks for your answer. I'm running on CentOS Linux. Unfortunately there is no such command as font_manager.X11InstalledFonts(), though there is font_manager.x11FontDirectory(). When I do that I get a list with a bunch of directories including '/usr/share/msttcorefonts', which contains th

Re: [Matplotlib-users] how to use different font for serif

2011-12-02 Thread Tony Yu
On Fri, Dec 2, 2011 at 4:13 PM, Jonathan Slavin wrote: > Hi all, > > I've been trying to use a different serif font for a plot and have been > running into problems. I thought I could just do something like: > > from matplotlib import rc > rc('font', family='serif', serif='Times New Roman') > > b

[Matplotlib-users] how to use different font for serif

2011-12-02 Thread Jonathan Slavin
Hi all, I've been trying to use a different serif font for a plot and have been running into problems. I thought I could just do something like: from matplotlib import rc rc('font', family='serif', serif='Times New Roman') but if I try that I end up getting: findfont: Font family ['serif'] not