Matplotlib Text rendering with Latex

Hello, from a newbie-poster!

I’m in need of some fancier titles and labels on my pyplots, hopefully by using Matplotlibs text rendering with latex.

When I try plotting a simple plot with these settings I get the following errors:

CalledProcessError Traceback (most recent call last)

! LaTeX Error: File `type1cm.sty’ not found.

As I am not a specialist in latex or python, though I did some quick searches and found that I need to “apt-get install dvipng texlive-latex-extra texlive-fonts-recommended”. Which I’m not sure I can do in SWAN environments.

Is there a way I can come around this, or simply do it manually? If not - How do I proceed to make this happen?


Hello @csteinfi

I already did a PR to support this feature

but the code is not yet in our production servers.
It will be available in our next release :slight_smile:


1 Like