Matplotlib Error: LaTeX was not able to process the following string: ‘lp’

It seems you are missing a package for the dvi rendering. On debian-based distributions, this should suffice to get all the needed packages:

sudo apt-get install texlive-latex-extra texlive-fonts-recommended dvipng cm-super

Leave a Comment