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

Skip to content

Commit 0c48667

Browse files
committed
Merge pull request #4992 from ParfenovS/showpage-in-.eps-files
FIX: eps will work in more viewers Add a 'showpage' command at the end of the file.
2 parents eb42cfc + 6aaf1d1 commit 0c48667

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/matplotlib/backends/backend_ps.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1732,6 +1732,7 @@ def pstoeps(tmpfile, bbox=None, rotated=False):
17321732
write(b'countdictstack\n')
17331733
write(b'exch sub { end } repeat\n')
17341734
write(b'restore\n')
1735+
write(b'showpage\n')
17351736
write(b'%%EOF\n')
17361737
elif line.startswith(b'%%PageBoundingBox'):
17371738
pass

0 commit comments

Comments
 (0)