problem with ghostscript

Hi,

I am trying to generate graphs using

text.usetex : True
ps.usedistiller : xpdf

Unfortunately, when running

import pylab as P
P.plot([10],[10])
P.savefig('test.eps')

I get an error message:

File "/home/stefan//lib/python2.4/site-packages/matplotlib/backends/backend_ps.py", line 1412, in get_bbox
    raise RuntimeError('Ghostscript was not able to extract a bounding box.\
RuntimeError: Ghostscript was not able to extract a bounding box.Here is the Ghostscript output:

ESP Ghostscript 815.02: Unrecoverable error, exit code 1

When I run with --verbose-debug-annoying I see

pdftops -paper match -level2 "/tmp/098f6bcd4621d373cade4e832627b4f6.pdf" "/tmp/098f6bcd4621d373cade4e832627b4f6.ps" > "/tmp/098f6bcd4621d373cade4e832627b4f6.output"

gs -dBATCH -dNOPAUSE -sDEVICE=bbox "/tmp/098f6bcd4621d373cade4e832627b4f6"
ESP Ghostscript 815.02 (2006-04-19)
Copyright (C) 2004 artofcode LLC, Benicia, CA. All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
ERROR: /undefined in pdfLastFill

I am running gs v8.15.2, pdftops v3.00, dvipng v1.5 and xpdf v3.01. Are
these versions known to be incompatible, or is there possible a
problem with the output generated by matplotlib?

With

ps.usedistiller : ghostscript

everything runs smoothly, but the text looks pretty dismal.

I would appreciate any advice on how to get this running!

Thanks
Stéfan

Hi Stefan,

···

On Monday 23 October 2006 11:17, Stefan van der Walt wrote:

I am trying to generate graphs using

text.usetex : True
ps.usedistiller : xpdf

Unfortunately, when running

import pylab as P
P.plot([10],[10])
P.savefig('test.eps')

I get an error message:

File
"/home/stefan//lib/python2.4/site-packages/matplotlib/backends/backend_ps.p
y", line 1412, in get_bbox raise RuntimeError('Ghostscript was not able to
extract a bounding box.\ RuntimeError: Ghostscript was not able to extract
a bounding box.Here is the Ghostscript output:

ESP Ghostscript 815.02: Unrecoverable error, exit code 1

When I run with --verbose-debug-annoying I see

pdftops -paper match -level2 "/tmp/098f6bcd4621d373cade4e832627b4f6.pdf"
"/tmp/098f6bcd4621d373cade4e832627b4f6.ps" >
"/tmp/098f6bcd4621d373cade4e832627b4f6.output"

gs -dBATCH -dNOPAUSE -sDEVICE=bbox "/tmp/098f6bcd4621d373cade4e832627b4f6"
ESP Ghostscript 815.02 (2006-04-19)
Copyright (C) 2004 artofcode LLC, Benicia, CA. All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
ERROR: /undefined in pdfLastFill

I am running gs v8.15.2, pdftops v3.00, dvipng v1.5 and xpdf v3.01. Are
these versions known to be incompatible, or is there possible a
problem with the output generated by matplotlib?

With

ps.usedistiller : ghostscript

everything runs smoothly, but the text looks pretty dismal.

I would appreciate any advice on how to get this running!

I can't reproduce the problem here, using xpdf 3.01 (although xpdf -v returns
3.00), pdftops 3.00, gpl ghostscript 8.54 and latex 3.141592-1.30.5-2.2
(tetex 3.0 p1).

Hi Stefan,

> I am trying to generate graphs using
>
> text.usetex : True
> ps.usedistiller : xpdf

[...]

I can't reproduce the problem here, using xpdf 3.01 (although xpdf -v returns
3.00), pdftops 3.00, gpl ghostscript 8.54 and latex 3.141592-1.30.5-2.2
(tetex 3.0 p1).

Thanks for the feedback, Darren. I upgraded to ghostscript v8.54,
after which everything works smoothly.

Cheers
Stéfan

···

On Mon, Oct 23, 2006 at 01:28:36PM -0400, Darren Dale wrote:

On Monday 23 October 2006 11:17, Stefan van der Walt wrote: