Skip to content

Commit dd54a33

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

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

examples/userdemo/pgf_preamble_sgskip.py

Lines 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

Lines 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)