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 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.weight         : medium
> font.sans-serif     : Helvetica
>
> (I copied this from the Matplotlibrc documentation page)
>
>
> Now if I make a plot, and put some labels on there... (just using ipython)
>
> In [3]: figure()
> Out[3]: <matplotlib.figure.Figure at 0x2acb950>
>
> In [4]: xlabel('Hz',fontsize=20)
> Out[4]: <matplotlib.text.Text at 0x2ae3510>
>
> In [5]:
> /opt/python/lib/python2.7/site-packages/matplotlib/font_manager.py:1216:
> UserWarning: findfont: Font family ['sans-serif'] not found. Falling
> back to Bitstream Vera Sans
>     (prop.get_family(), self.defaultFamily[fontext]))
>
>
> I get this over and over and over again. I have deleted everything in my
> ~/.matplotlib folder. That is, I have deleted all of the font caches...
> I can't come up with anything else. The internet seems to thing that
> just deleting the caches will fix everything. In my case it doesn't.
>
> I get this problem on both my mac, and my Ubuntu Linux 12.04 machine.
>
> Thanks!
>
> Steven
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Matplotlib-users mailing list
> Matplotlib-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to