Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions src/sage/plot/graphics.py
Original file line number Diff line number Diff line change
Expand Up @@ -3381,11 +3381,12 @@ def save(self, filename, **kwds):
if latex_implementations[0] == "pdflatex":
# use pdflatex and set font encoding as per
# matplotlib documentation:
# https://matplotlib.org/users/pgf.html#pgf-tutorial
# https://matplotlib.org/stable/users/explain/text/pgf.html
# Note that pgf.preamble should be a string now, not a list
pgf_options = {"pgf.texsystem": "pdflatex",
"pgf.preamble": [
"pgf.preamble": "\n".join([
r"\usepackage[utf8x]{inputenc}",
r"\usepackage[T1]{fontenc}"]}
r"\usepackage[T1]{fontenc}"])}
else:
pgf_options = {
"pgf.texsystem": latex_implementations[0],
Expand Down
Loading