Michael Droettboom wrote:
> Even if my Postscript is to spec, it's not terribly useful if it crashes 
> a very popular tool ;)
> 
> I'm curious -- does the file fail if you set "ps.fonttype: 42" in your 
> matplotlibrc?  That would at least rule out anything non-font in the file.

Aha!  You may be off the hook.  It fails in the same way, at 400%.  With 
a ps file generated either way, it starts to render the image at that 
magnification, then crashes.

[EMAIL PROTECTED]:~/programs/py/mpl/tests$ evince testps.ps
ERROR: /unknownerror in --%op_show_continue--
Operand stack:

Execution stack:
    %interp_exit   .runexec2   --nostringval--   --nostringval-- 
--nostringval--   2   %stopped_push   --nostringval--   --nostringval-- 
   --nostringval--   false   1   %stopped_push   1   3   %oparray_pop 
1   3   %oparray_pop   1   3   %oparray_pop   1   3   %oparray_pop 
.runexec2   --nostringval--   --nostringval--   --nostringval--   2 
%stopped_push   --nostringval--
Dictionary stack:
    --dict:1126/1686(ro)(G)--   --dict:0/20(G)--   --dict:103/200(L)-- 
  --dict:7/7(L)--
Current allocation mode is local
Current file position is 85042
ESP Ghostscript 815.04: Unrecoverable error, exit code 1

** (evince:7480): WARNING **: Interpreter failed.



> 
> I just built my own ESP Ghostscript 815.04 and am able to make some 
> pretty high resolution renderings at the commandline.  I'm not exactly 
> sure how "400%" in the GUI relates to dpi, but I can do 1200 dpi without 
> problem.  Perhaps there's something else going on in the evince 
> stack...  I'll try later on my Ubuntu box at home, since building all 
> that on this RHEL4 box could be time consuming.

If you have gv installed on your RHEL4 box, you can use that instead of 
evince.

> 
> Does the following work for you?
> 
>    gs -sOUTPUT_DEVICE=pngalpha -sOutputFile=test%03d.png -r1200x1200 
> simple_plot_ps.ps
  gs -sDEVICE=pngalpha -sOutputFile=testps2.png -dNOPAUSE  -r1200 -c 
showpage -c quit testps.ps

does not yield an error message.  The problem seems peculiar to the way 
gui apps are running gs, and to the mpl way of generating the 
postscript, since it does not occur with cairo-generated postscript.

Eric

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel

Reply via email to