Python: Unable to Render Tex in Matplotlib

前端 未结 3 1469
盖世英雄少女心
盖世英雄少女心 2020-11-29 06:02

I recently upgraded my laptop to Snow Leopard, updated TeX to Version 3.1415926 (TeX Live 2011/MacPorts 2011_5), and installed Python 2.7.3. After all these installs, I ran

相关标签:
3条回答
  • 2020-11-29 06:19

    On an Ubunutu 14.04 machine the combination of answers from above worked. I sudo apt-get install the dvipng,texlive-latex-extra, and texlive-fonts-recommended packages and that did the trick:

    $ sudo apt-get install dvipng texlive-latex-extra texlive-fonts-recommended 
    

    Edit: As of Matplotlib 3.2.1, you now also need the package cm-super (see https://github.com/matplotlib/matplotlib/issues/16911)

    0 讨论(0)
  • 2020-11-29 06:21

    The error message says you're missing the type1cm package. It seems that MacPorts includes it as part of texlive-latex-extra.

    0 讨论(0)
  • 2020-11-29 06:28

    I had to install the cm-super package in a ubuntu derivate (jupyter/minimal-notebook which derives from Ubuntu 18.04) $ sudo apt-get install cm-super

    0 讨论(0)
提交回复
热议问题