8000 showpage at the end of .eps files · matplotlib/matplotlib@8d640a5 · GitHub
[go: up one dir, main page]

Skip to content

Commit 8d640a5

Browse files
ParfenovSbuefox
authored andcommitted
showpage at the end of .eps files
There can be problems with viewing of *.eps files using evince or okular. See, for example, this thread: https://bugs.launchpad.net/ubuntu/+source/evince/+bug/1348384 There are the same problems in the last releases of Fedora. Note that the same *.eps files which can not be viewed with evince/okular can be opened and viewed with inkscape, ghostscript etc. These commits allow to avoid such problems. I understand that *.eps files without showpage at the end are valid. But the presence of showpage is allowed and should not lead to some problems.
1 parent eb42cfc commit 8d640a5

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)
0