EPS problem

Hi,

I tried to use the PS backend of matplotlib 0.87.2 to create EPS figures, but I got the error at the bottom of this email. I'm using tetex-2.0.2. These are my modified matplotlibrc settings:

matplotlib.rcParams["backend"] = "PS"
matplotlib.rcParams["font.family"] = "serif"
matplotlib.rcParams["font.size"] = 7.0
matplotlib.rcParams["text.usetex"] = True
matplotlib.rcParams["axes.titlesize"] = 8.0
matplotlib.rcParams["axes.labelsize"] = 7.0
matplotlib.rcParams["xtick.labelsize"] = 7.0
matplotlib.rcParams["ytick.labelsize"] = 7.0
matplotlib.rcParams["legend.fontsize"] = 7.0
matplotlib.rcParams["legend.markerscale"] = 0.7
matplotlib.rcParams["figure.dpi"] = 72
matplotlib.rcParams["figure.facecolor"] = "white"
matplotlib.rcParams["savefig.dpi"] = 72
matplotlib.rcParams["ps.papersize"] = "A4"

What could be the problem? Which versions of tetex are known to work?

Any help is greatly appreciated.

regards,

Toon

Writing water_cr_chi_eta_degeneracy_plot_npa_h.eps
Traceback (most recent call last):
   File "/usr/bin/tp-default-transform", line 146, in ?
     projectlog.express(body, doc)
   File "/usr/lib/python2.4/site-packages/task_projects/logs.py", line 101, in express
     content.express(div_el, doc, depth+1)
   File "/usr/lib/python2.4/site-packages/task_projects/logs.py", line 101, in express
     content.express(div_el, doc, depth+1)
   File "/usr/lib/python2.4/site-packages/task_projects/logs.py", line 103, in express
     content.express(div_el, doc)
   File "/usr/lib/python2.4/site-packages/ffaudit/logs.py", line 176, in express
     pylab.savefig("%s.eps" % filename, dpi=self.dpi)
   File "/usr/lib/python2.4/site-packages/matplotlib/pylab.py", line 839, in savefig
     return fig.savefig(*args, **kwargs)
   File "/usr/lib/python2.4/site-packages/matplotlib/figure.py", line 658, in savefig
     self.canvas.print_figure(*args, **kwargs)
   File "/usr/lib/python2.4/site-packages/matplotlib/backends/backend_gtkagg.py", line 112, in print_figure
     orientation, **kwargs)
   File "/usr/lib/python2.4/site-packages/matplotlib/backends/backend_agg.py", line 493, in print_figure
     orientation, **kwargs)
   File "/usr/lib/python2.4/site-packages/matplotlib/backends/backend_ps.py", line 987, in print_figure
     orientation, papertype)
   File "/usr/lib/python2.4/site-packages/matplotlib/backends/backend_ps.py", line 1205, in _print_figure_tex
     orientation)
   File "/usr/lib/python2.4/site-packages/matplotlib/backends/backend_ps.py", line 1262, in convert_psfrags
     if exit_status: raise RuntimeError('LaTeX was not able to process \
RuntimeError: LaTeX was not able to process your image.
Here is the full report generated by LaTeX:

This is TeX, Version 3.14159 (Web2C 7.4.5)
(/tmp/ce5a2910205804a7f7b68a822d15a84d.tex
LaTeX2e <2001/06/01>
Babel <v3.7h> and hyphenation patterns for american, french, german, ngerman, n
ohyphenation, loaded.
(/usr/share/texmf/tex/latex/base/article.cls
Document Class: article 2001/04/21 v1.4e Standard LaTeX document class
(/usr/share/texmf/tex/latex/base/size10.clo))
(/usr/share/texmf/tex/latex/misc/type1cm.sty)
(/usr/share/texmf/tex/latex/psnfss/helvet.sty
(/usr/share/texmf/tex/latex/graphics/keyval.sty))
(/usr/share/texmf/tex/latex/psnfss/courier.sty)
(/usr/share/texmf/tex/latex/base/textcomp.sty
(/usr/share/texmf/tex/latex/base/ts1enc.def))
(/usr/share/texmf/tex/latex/misc/geometry.sty
(/usr/share/texmf/tex/latex/config/geometry.cfg)

Package geometry Warning: Over-specification in `h'-direction.
     `width' (411.93877pt) is ignored.

Package geometry Warning: Over-specification in `v'-direction.
     `height' (411.93877pt) is ignored.

) (/usr/share/texmf/tex/latex/misc/psfrag.sty
(/usr/share/texmf/tex/latex/graphics/graphics.sty
(/usr/share/texmf/tex/latex/graphics/trig.sty)
(/usr/share/texmf/tex/latex/config/graphics.cfg)
(/usr/share/texmf/tex/latex/graphics/dvips.def)))
(/usr/share/texmf/tex/latex/graphics/graphicx.sty)
(/usr/share/texmf/tex/latex/graphics/color.sty
(/usr/share/texmf/tex/latex/config/color.cfg)
(/usr/share/texmf/tex/latex/graphics/dvipsnam.def))
(./ce5a2910205804a7f7b68a822d15a84d.aux)
(/usr/share/texmf/tex/latex/base/ts1cmr.fd)
(/usr/share/texmf/tex/latex/psnfss/ot1pnc.fd)
<ce5a2910205804a7f7b68a822d15a84d.eps>

! LaTeX Error: Something's wrong--perhaps a missing \item.

See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
  ...

l.33 ...e=0]{ce5a2910205804a7f7b68a822d15a84d.eps}

! LaTeX Error: Something's wrong--perhaps a missing \item.

See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
  ...

l.33 ...e=0]{ce5a2910205804a7f7b68a822d15a84d.eps}

! LaTeX Error: Something's wrong--perhaps a missing \item.

See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
  ...

l.33 ...e=0]{ce5a2910205804a7f7b68a822d15a84d.eps}

! LaTeX Error: Something's wrong--perhaps a missing \item.

See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
  ...

l.33 ...e=0]{ce5a2910205804a7f7b68a822d15a84d.eps}

! LaTeX Error: Something's wrong--perhaps a missing \item.

See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
  ...

l.33 ...e=0]{ce5a2910205804a7f7b68a822d15a84d.eps}

! LaTeX Error: Something's wrong--perhaps a missing \item.

See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
  ...

l.33 ...e=0]{ce5a2910205804a7f7b68a822d15a84d.eps}

! LaTeX Error: Something's wrong--perhaps a missing \item.

See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
  ...

l.33 ...e=0]{ce5a2910205804a7f7b68a822d15a84d.eps}

[1] (./ce5a2910205804a7f7b68a822d15a84d.aux) )
(see the transcript file for additional information)
Output written on ce5a2910205804a7f7b68a822d15a84d.dvi (1 page, 3940 bytes).
Transcript written on ce5a2910205804a7f7b68a822d15a84d.log.

Its difficult to say what the problem might be without seeing a script that
reproduces the problem. The svn version works well, but I dont know when the
next release might occur.

Darren

···

On Tuesday 23 May 2006 12:23, Toon Verstraelen wrote:

Hi,

I tried to use the PS backend of matplotlib 0.87.2 to create EPS
figures, but I got the error at the bottom of this email. I'm using
tetex-2.0.2. These are my modified matplotlibrc settings:

matplotlib.rcParams["backend"] = "PS"
matplotlib.rcParams["font.family"] = "serif"
matplotlib.rcParams["font.size"] = 7.0
matplotlib.rcParams["text.usetex"] = True
matplotlib.rcParams["axes.titlesize"] = 8.0
matplotlib.rcParams["axes.labelsize"] = 7.0
matplotlib.rcParams["xtick.labelsize"] = 7.0
matplotlib.rcParams["ytick.labelsize"] = 7.0
matplotlib.rcParams["legend.fontsize"] = 7.0
matplotlib.rcParams["legend.markerscale"] = 0.7
matplotlib.rcParams["figure.dpi"] = 72
matplotlib.rcParams["figure.facecolor"] = "white"
matplotlib.rcParams["savefig.dpi"] = 72
matplotlib.rcParams["ps.papersize"] = "A4"

What could be the problem? Which versions of tetex are known to work?