2 Feb 05:14
Bug in eps output of matplotlib
I'm running v0.99.1.2 on Debian Linux, 32 bit Intel. A colorbar on
the right with negative labels produces postscript-eps output which
displays ok with gv or evince. But when conversion of the ps/eps file
to pdf is made, the negative labels get replaced by dashes when the
pdf is viewed by xpdf or evince. A variety of pdf conversion methods
(ps2pdf, pdflatex) were used, all with the same result. I am
including a simple sample python script which creates a graphic with
the problem:
---------------------------------------------------------------------
#!/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()
(Continue reading)
RSS Feed