How to use sans-serif family, arial font in matplotlib, in ubuntu 12.04 lts?

Posted by Shawn Wang on Stack Overflow See other posts from Stack Overflow or by Shawn Wang
Published on 2013-08-02T15:33:15Z Indexed on 2013/08/02 15:36 UTC
Read the original article Hit count: 357

Filed under:
|
|

I installed Ubuntu 12.04 LTS and the Scipy stack. I tried to set in matplotlibrc to use sans-serif family, arial font as default. While this has been working on my Windows computer, it reported the following warning:

UserWarning: findfont: Font family ['sans-serif'] not found. Falling back to Bitstream Vera Sans (prop.get_family(), self.defaultFamily[fontext]))

And it seems that the font is either not installed, or in a wrong name. I think I have installed the TrueType font (by googling), but I'd really appreciate it if anyone could help me to set the font family in the system with the name 'sans-serif' and find the relevant font files that belongs to this folder.

Thank you!

-Shawn

© Stack Overflow or respective owner

Related posts about ubuntu

Related posts about fonts