You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've just run into #16911. The problem is that the type1ec LaTeX package is necessary when text.latex.unicode is True in the rcParams (which is the default since 3.0). On debian this is part of the cm-super system package. I've had some trouble discovering this information.
As of Clarify error with usetex when cm-super is not installed. #14151 the problem is clear at least: type1ec is missing. (Although I got this error using a completely innocent, ascii-only, as far as I know ligature-free label in a plot. The error hadn't come up two figures earlier with other, innocent, ascii-only labels. And this is without text.usetex.)
On Ubuntu and Gentoo, the base texlive install does not ship with the type1cm package. You may need to install some of the extra packages to get all the goodies that come bundled with other latex distributions.
Note that type1cm is part of texlive-latex-extra which is a straightforward system package to install for LaTeX stuff, and for matplotlib in particular. However, type1ec is not included there, and what's worse, apt search type1ec doesn't turn up any resuts (unlike the same for type1cm).
I've just run into #16911. The problem is that the
type1ecLaTeX package is necessary whentext.latex.unicodeisTruein thercParams(which is the default since 3.0). On debian this is part of thecm-supersystem package. I've had some trouble discovering this information.type1ecis missing. (Although I got this error using a completely innocent, ascii-only, as far as I know ligature-free label in a plot. The error hadn't come up two figures earlier with other, innocent, ascii-only labels. And this is withouttext.usetex.)text.latex.unicodechanged toTruein 3.0 here, but this is not mentioned in the easy-to-find What's new, only in the hard-to-discover API changes.Ideally the dependency should be mentioned somewhere, perhaps among the installation guide. Currently that page mentions
In Text rendering with LaTeX (which focusses on
usetex) it mentionsNote that
type1cmis part oftexlive-latex-extrawhich is a straightforward system package to install for LaTeX stuff, and for matplotlib in particular. However,type1ecis not included there, and what's worse,apt search type1ecdoesn't turn up any resuts (unlike the same fortype1cm).