I have fixed it. Or, I have a better handle on what the stupid thing is
doing. LOL.
The problem was a couple of things.
1. Michael was right. There was no file named Helvetica.ttf installed
on my machine.
2. The path were I thought MPL was looking for files wasn't the right
path. I thought it
I fail to understand what I am doing wrong and how I supposed to fix it
using backend :TkAgg
Again in ipython, after I have imported rc from matplotlib...
In [5]: rc('font',**{'family':'sans-serif','sans-serif':['Helvetica']})
In [6]: figure()
Out[6]:
In [7]: xlabel('z')
Out[7]:
In [8]:
Those *.afm fonts are only available in the postscript backend when
"ps.usecorefonts" is set to True. Otherwise, you have to use
TrueType/OpenType fonts.
Mike
On 09/25/2012 12:11 PM, Steven Boada wrote:
> Hey Mike
>
> $ fc-match Helvetica
> n019003l.pfb: "Nimbus Sans L" "Regular"
>
>
> Perhaps
Hey Mike
$ fc-match Helvetica
n019003l.pfb: "Nimbus Sans L" "Regular"
Perhaps I don't have the fonts installed...
In my matplotlib/mpl-data/fonts/ I have the following fonts installed...
in ttf/
cmb10.ttf RELEASENOTES.TXT STIXSizFourSymBol.ttf VeraIt.ttf
cmex10.ttf STIXGeneralB
Do you have a font installed called Helvetica? That's pretty rare these
days... most systems have one of the many Helvetica clones instead.
Does "fc-match Helvetica" (at the commandline) return anything?
Mike
On 09/25/2012 10:05 AM, Steven Boada wrote:
> List,
>
> I am trying, with little suc
List,
I am trying, with little success, to change the fonts on my plots. It
seems like a simple thing to do, but I can't seem to make it work.
First, here is the relevant section of my Matplotlibrc file:
backend : GTKAgg
font.family : sans-serif
font.style : normal
font.w