Skip to content

Commit 0bff071

Browse files
Fix #20850
Do not remove serif font family in pgf example to avoid Warning
1 parent 1d12973 commit 0bff071

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/userdemo/pgf_fonts.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77

88
import matplotlib.pyplot as plt
99
plt.rcParams.update({
10+
# Use LaTeX default serif font-family.
11+
# https://matplotlib.org/stable/tutorials/text/usetex.html#sphx-glr-tutorials-text-usetex-py
1012
"font.family": "serif",
11-
# Use LaTeX default serif font.
12-
"font.serif": [],
1313
# Use specific cursive fonts.
1414
"font.cursive": ["Comic Neue", "Comic Sans MS"],
1515
})

0 commit comments

Comments
 (0)