#StackBounty: #python #matplotlib #fonts #latex #ubuntu-16.04 Which latex font does matplotlib need and how do I make it available?

Bounty: 100

The below error trace from running this small example says that it cannot find the cmr12 font. I found the following files in my system (Ubuntu 16.10):

./fonts/truetype/lyx/cmr12.ttf
./texlive/texmf-dist/fonts/source/public/cm/cmr12.mf
./texlive/texmf-dist/fonts/tfm/public/cm/cmr12.tfm
./texlive/texmf-dist/fonts/pk/ljfour/public/cm/dpi600/cmr12.pk
./texlive/texmf-dist/fonts/type1/public/amsfonts/cm/cmr12.pfb
./texlive/texmf-dist/fonts/type1/public/amsfonts/cm/cmr12.pfm
./texlive/texmf-dist/fonts/afm/public/amsfonts/cm/cmr12.afm

So, which font does matplotlib need and how do I make it available? Also, why does the font file that matplotlib is looking for does not have an extension?

Here is the trace:

Traceback (most recent call last):
  File "temp.py", line 45, in <module>
    d['ModDate'] = datetime.datetime.today()
  File "/usr/lib/python2.7/dist-packages/matplotlib/backends/backend_pdf.py", line 2435, in __exit__
    self.close()
  File "/usr/lib/python2.7/dist-packages/matplotlib/backends/backend_pdf.py", line 2442, in close
    self._file.close()
  File "/usr/lib/python2.7/dist-packages/matplotlib/backends/backend_pdf.py", line 547, in close
    self.writeFonts()
  File "/usr/lib/python2.7/dist-packages/matplotlib/backends/backend_pdf.py", line 647, in writeFonts
    realpath, stat_key = get_realpath_and_stat(filename)
  File "/usr/lib/python2.7/dist-packages/matplotlib/cbook.py", line 1038, in __call__
    stat = os.stat(realpath)
OSError: [Errno 2] No such file or directory: '/home/meir/Dropbox/temp/cmr12'


Get this bounty!!!