--- Begin Message ---
- To: Debian Bug Tracking System <submit@bugs.debian.org>
- Subject: ghostscript: ps2pdf makes bad translation of certain matplotlib ps files to pdf
- From: "David J. Raymond" <raymond@kestrel.nmt.edu>
- Date: Tue, 02 Feb 2010 14:50:27 -0700
- Message-id: <20100202215027.11709.11166.reportbug@swallow>
Package: ghostscript
Version: 8.70~dfsg-2
Severity: normal
Certain ps/eps files produced by python-matplotlib are not translated
properly to pdf by ps2pdf/eps2pdf. In particular, negative numbers as
labels on a color bar end up as two dashes in the pdf (as viewed by
both xpdf and evince). Xpdf also complains about the translated pdf
file. The original ps/eps files display perfectly with gv and evince.
This problem occurs only with ps2pdf/eps2pdf in squeeze. The lenny
versions of these scripts yield translations which present properly in
xpdf etc.
I am including a short python script which produces the ps and eps
files which exhibit the problem. Select the ps or eps output when the
matplotlib display window pops up and then translate the file to
pdf using ps2pdf or eps2pdf. I can provide the original ps and the
translated pdf files done on both lenny and squeeze if desired.
------------------------------------
#!/usr/bin/python
from numpy import *
import matplotlib.pyplot as plt
# this demos a bug in the eps output
x = linspace(0,6,13)
y = linspace(0,3,7)
(X,Y) = meshgrid(x,y)
a = 3.5*sin(X)*sin(Y)
c = plt.contourf(x,y,a)
b = plt.colorbar(c, orientation = 'vertical')
lx = plt.xlabel('x')
ly = plt.ylabel('y')
ax = plt.axis([0,6,0,3])
plt.show()
----------------------------------------------
-- System Information:
Debian Release: squeeze/sid
APT prefers stable
APT policy: (500, 'stable')
Architecture: i386 (i686)
Kernel: Linux 2.6.32-trunk-686 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages ghostscript depends on:
ii debconf [debc 1.5.28 Debian configuration management sy
ii debianutils 3.2.2 Miscellaneous utilities specific t
ii defoma 0.11.10-4 Debian Font Manager -- automatic f
ii ghostscript [ 8.70~dfsg-2 The GPL Ghostscript PostScript/PDF
ii gs-common 8.70~dfsg-2 Dummy package depending on ghostsc
ii gsfonts 1:8.11+urwcyr1.0.7~pre44-4 Fonts for the Ghostscript interpre
ii libc6 2.10.2-2 GNU C Library: Shared libraries
ii libgs8 8.70~dfsg-2 The Ghostscript PostScript/PDF int
Versions of packages ghostscript recommends:
ii psfontmgr 0.11.10-4 PostScript font manager -- part of
ghostscript suggests no packages.
-- no debconf information
--- End Message ---