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
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
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
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
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
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