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 dd54a33

Browse filesBrowse files
committed
DOC: Don't pass string lists to pgf.preamble.
1 parent ad8a40e commit dd54a33
Copy full SHA for dd54a33

File tree

Expand file treeCollapse file tree

2 files changed

+4
-4
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+4
-4
lines changed

‎examples/userdemo/pgf_preamble_sgskip.py

Copy file name to clipboardExpand all lines: examples/userdemo/pgf_preamble_sgskip.py
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@
1212
"font.family": "serif", # use serif/main font for text elements
1313
"text.usetex": True, # use inline math for ticks
1414
"pgf.rcfonts": False, # don't setup fonts from rc parameters
15-
"pgf.preamble": [
15+
"pgf.preamble": "\n".join([
1616
"\\usepackage{units}", # load additional packages
1717
"\\usepackage{metalogo}",
1818
"\\usepackage{unicode-math}", # unicode math setup
1919
r"\setmathfont{xits-math.otf}",
2020
r"\setmainfont{DejaVu Serif}", # serif font via preamble
21-
]
21+
])
2222
})
2323

2424
plt.figure(figsize=(4.5, 2.5))

‎examples/userdemo/pgf_texsystem.py

Copy file name to clipboardExpand all lines: examples/userdemo/pgf_texsystem.py
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
import matplotlib.pyplot as plt
99
plt.rcParams.update({
1010
"pgf.texsystem": "pdflatex",
11-
"pgf.preamble": [
11+
"pgf.preamble": "\n".join([
1212
r"\usepackage[utf8x]{inputenc}",
1313
r"\usepackage[T1]{fontenc}",
1414
r"\usepackage{cmbright}",
15-
]
15+
]),
1616
})
1717

1818
plt.figure(figsize=(4.5, 2.5))

0 commit comments

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