-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Fix eps + usetex combo. #17255
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix eps + usetex combo. #17255
Conversation
Thank you for the quick fix @anntzer ! |
Owee, I'm MrMeeseeks, Look at me. There seem to be a conflict, please backport manually. Here are approximate instructions:
And apply the correct labels and milestones. Congratulation you did some good work ! Hopefully your backport PR will be tested by the continuous integration and merged soon! If these instruction are inaccurate, feel free to suggest an improvement. |
This does not backport cleanly due to collisions with #16476 If I resolve the conflict in the obvious way diff --git a/lib/matplotlib/texmanager.py b/lib/matplotlib/texmanager.py
index 1e788a64c..d8bf8ef13 100644
--- a/lib/matplotlib/texmanager.py
+++ b/lib/matplotlib/texmanager.py
@@ -219,7 +219,11 @@ class TexManager:
\usepackage[papersize={72in,72in},body={70in,70in},margin={1in,1in}]{geometry}
\pagestyle{empty}
\begin{document}
-\fontsize{%f}{%f}%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._font_preamble, unicode_preamble, custom_preamble,
fontsize, fontsize * 1.25, tex) still results in the incorrect media box. I am unfortunately at the end of my expertise at this point. |
I think that's because #16913 also needs to be backported. |
FIX: eps + usetex combo.
PR Summary
Closes #17253.
PR Checklist