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 da977d6

Browse filesBrowse files
authored
Merge pull request #14194 from meeseeksmachine/auto-backport-of-pr-14167-on-v3.1.x
Backport PR #14167 on branch v3.1.x (Fix backend_pgf header.)
2 parents f7e5831 + 64364d3 commit da977d6
Copy full SHA for da977d6

File tree

Expand file treeCollapse file tree

1 file changed

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

1 file changed

+2
-1
lines changed

‎lib/matplotlib/backends/backend_pgf.py

Copy file name to clipboardExpand all lines: lib/matplotlib/backends/backend_pgf.py
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,9 +212,10 @@ def _build_latex_header():
212212
# fonts later when we don't expect the additional output on stdout.
213213
# TODO: is this sufficient?
214214
latex_header = [
215+
r"\documentclass{minimal}",
215216
# Include TeX program name as a comment for cache invalidation.
217+
# TeX does not allow this to be the first line.
216218
r"% !TeX program = {}".format(rcParams["pgf.texsystem"]),
217-
r"\documentclass{minimal}",
218219
latex_preamble,
219220
latex_fontspec,
220221
r"\begin{document}",

0 commit comments

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