How to use sans-serif family, arial font in matplotlib, in ubuntu 12.04 lts?
- by Shawn Wang
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