Skip to content

Commit 33e34c3

Browse files
committed
fix: correctly format the document class
1 parent c1bceea commit 33e34c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/backends/backend_pgf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -832,7 +832,7 @@ def print_pdf(self, fname_or_fh, *, metadata=None, **kwargs):
832832
self.print_pgf(tmppath / "figure.pgf", **kwargs)
833833
(tmppath / "figure.tex").write_text(
834834
"\n".join([
835-
r"\documentclass{{{docclass}}}"
835+
rf"\documentclass{{{docclass}}}"
836836
r"\usepackage[pdfinfo={%s}]{hyperref}" % pdfinfo,
837837
r"\usepackage[papersize={%fin,%fin}, margin=0in]{geometry}"
838838
% (w, h),

0 commit comments

Comments
 (0)