Skip to content

Commit

Permalink
Fix eps + usetex combo.
Browse files Browse the repository at this point in the history
  • Loading branch information
anntzer committed Apr 28, 2020
1 parent a4378ef commit 62ed34f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lib/matplotlib/texmanager.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,8 +208,11 @@ def make_tex(self, tex, fontsize):
%s
\pagestyle{empty}
\begin{document}
%% The empty hbox ensures that a page is printed even for empty inputs.
\fontsize{%f}{%f}\hbox{}%s
%% The empty hbox ensures that a page is printed even for empty inputs, except
%% when using psfrag which gets confused by it.
\fontsize{%f}{%f}%%
\ifdefined\psfrag\else\hbox{}\fi%%
%s
\end{document}
""" % (self._get_preamble(), fontsize, fontsize * 1.25, fontcmd % tex),
encoding='utf-8')
Expand Down

0 comments on commit 62ed34f

Please sign in to comment.