Jae-Joon Lee wrote:
> My guess is that somehow the output format of bbox device in the
> recent ghostscript has changed.
> 
> What kind of output do you get when you run
> 
>> gs -dBATCH -dNOPAUSE -sDEVICE=bbox test.eps
> 
> in your shell (replace "test.eps" with any eps file you have)
> 
> I get
> 
> GPL Ghostscript 8.61 (2007-11-21)
> Copyright (C) 2007 Artifex Software, Inc.  All rights reserved.
> This software comes with NO WARRANTY: see the file PUBLIC for details.
> %%BoundingBox: 71 214 541 578
> %%HiResBoundingBox: 71.207998 214.811993 540.629984 577.169982
> 
> The last two lines are what matplotlib requires to work.

I get
GPL Ghostscript 8.70 (2009-07-31)
Copyright (C) 2009 Artifex Software, Inc.  All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
%%BoundingBox: 69 210 541 574
%%HiResBoundingBox: 69.155998 210.131994 540.203960 573.335983

which looks pretty similar to me

> 
> Meanwhile, can you test if following changes make things work?
> 
> In lib/matplotlib/backends/backend_ps.py, comment out following two
> lines near the end of the function "xpdf_distill" (around line 1458 in
> my code), i.e.,
> 
>     if eps:
>         pstoeps(tmpfile, bbox)
> 
> It will not raise the error, but may give you a wrong bbox.
> 
They were at line 1363. Now it works but with the wrong bbox as you 
predicted.

Thanks for help so far. Any more ideas? I'll try the svn if it is just a 
case of checking it out and compiling.

John.


------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to