Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 746c691

Browse filesBrowse files
committed
Merge pull request #17255 from anntzer/epsusetex
FIX: eps + usetex combo.
1 parent 76d114f commit 746c691
Copy full SHA for 746c691

File tree

Expand file treeCollapse file tree

1 file changed

+5
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+5
-2
lines changed

‎lib/matplotlib/texmanager.py

Copy file name to clipboardExpand all lines: lib/matplotlib/texmanager.py
+5-2Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,8 +228,11 @@ def make_tex(self, tex, fontsize):
228228
%s
229229
\pagestyle{empty}
230230
\begin{document}
231-
%% The empty hbox ensures that a page is printed even for empty inputs.
232-
\fontsize{%f}{%f}\hbox{}%s
231+
%% The empty hbox ensures that a page is printed even for empty inputs, except
232+
%% when using psfrag which gets confused by it.
233+
\fontsize{%f}{%f}%%
234+
\ifdefined\psfrag\else\hbox{}\fi%%
235+
%s
233236
\end{document}
234237
""" % (self._get_preamble(), fontsize, fontsize * 1.25, tex)
235238
with open(texfile, 'wb') as fh:

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.