Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 56d48cf

Browse files
committed
Remove another overspecified latex geometry.
This is a corollary to #17847; specifying paper size, body and margin causes a warning from the geometry package.
1 parent f782a82 commit 56d48cf

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/matplotlib/backends/backend_ps.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1107,8 +1107,7 @@ def convert_psfrags(tmpfile, psfrags, font_preamble, custom_preamble,
11071107
mpl.rcParams["text.latex.preamble"] +
11081108
r"\usepackage{psfrag,color}""\n"
11091109
r"\usepackage[dvips]{graphicx}""\n"
1110-
r"\geometry{papersize={%(width)sin,%(height)sin},"
1111-
r"body={%(width)sin,%(height)sin},margin=0in}"
1110+
r"\geometry{papersize={%(width)sin,%(height)sin},margin=0in}"
11121111
% {"width": paper_width, "height": paper_height}
11131112
}):
11141113
dvifile = TexManager().make_dvi(

0 commit comments

Comments
 (0)