Skip to content

Commit ef5f65a

Browse files
Fix swap_if_landscape call in backend_ps
1 parent 51a1940 commit ef5f65a

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
@@ -840,7 +840,7 @@ def _print_figure(
840840
# distillers improperly clip eps files if pagesize is too small
841841
if width > paper_width or height > paper_height:
842842
papertype = _get_papertype(
843-
*orientation.swap_if_landscape(width, height))
843+
*orientation.swap_if_landscape((width, height)))
844844
paper_width, paper_height = orientation.swap_if_landscape(
845845
papersize[papertype])
846846

0 commit comments

Comments
 (0)