Skip to content

Commit e3c2b31

Browse files
authored
Merge pull request #17509 from Contextualist/patch-1
Fix `swap_if_landscape` call in backend_ps
2 parents 7730016 + ef5f65a commit e3c2b31

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/backends/backend_ps.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -860,7 +860,7 @@ def _print_figure(
860860
# distillers improperly clip eps files if pagesize is too small
861861
if width > paper_width or height > paper_height:
862862
papertype = _get_papertype(
863-
*orientation.swap_if_landscape(width, height))
863+
*orientation.swap_if_landscape((width, height)))
864864
paper_width, paper_height = orientation.swap_if_landscape(
865865
papersize[papertype])
866866

0 commit comments

Comments
 (0)