[SciPy-user] Broken pipe for xplt.eps (Other issue)
Pearu Peterson
pearu at cens.ioc.ee
Wed Apr 9 11:01:31 EDT 2003
On Tue, 8 Apr 2003, Fernando Perez wrote:
<snip python function correcting eps file bbox>
> So maybe using ps2eps may help.
The problem with *ps2*ps* utilities is that they may considerably
increase (by factors 5 or even more) the sizes of postscript files on
certain plots (e.g. on Matlab generated meshes if face lines are not
disabled).
Eps-files bounding boxes can be fixed using gs bbox device feature.
For example,
gs -q -dNOPAUSE -sDEVICE=bbox -dBATCH -sOutputFile=- file.ps
will calculate and output correct BoundingBox and HiResBoundingBox
to standard output.
And then you can either use sed or may be python tools to replace
%%BoundingBox: ...
line in file.ps with the correct BoundingBox values.
Pearu
More information about the SciPy-User
mailing list