[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Was Running Beautifully, Now Not?

From: Andreas Weber
Subject: Re: Was Running Beautifully, Now Not?
Date: Thu, 04 Sep 2014 19:07:45 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Icedove/24.5.0

Am 04.09.2014 18:45, schrieb Damian Harty:
>> Okay, fine. Anything interesting in the generated log?
> Well, I'm not sure. It's attached. It all looks unremarkable until line 68, 
> at which point it seems to go binary. It comes back again, though.

The attached octave-print-commands.log shows a sin with 100 points, not
the requested rand(3). Have you added the wroong file by accident?

>> Are there "NaN" in the generated eps?
> Definitely not. grep -i nan test.eps returns nothing.
>> Now try to convert the generated eps to jpg using ghostscript like Octave 
>> would do:
>>   gswin32c.exe -dNOPAUSE -dSAFER -dBATCH -sDEVICE=jpeg -dTextAlphaBits=4 
>> -dGraphicsAlphaBits=4 -r150x150 -dEPSCrop -OutputFile=test1.jpg test.eps
> C:\Users\daharty\Desktop\Polaris Live 
> Content>C:\Octave\Octave3.6.4_gcc4.6.2\gs\bin\gswin32c.exe -dNOPAUSE -dSAFER 
> -dBATCH -sDEVICE=jpeg -dTextAlphaBits=4 -dGraphicsAlphaBits=4 -r150x150 
> -dEPSCrop -sOutputFile=test1.jpg test.eps
> GPL Ghostscript 9.07 (2013-02-14)
> Copyright (C) 2012 Artifex Software, Inc.  All rights reserved.
> This software comes with NO WARRANTY: see the file PUBLIC for details.
> --> Error: /undefined in Scleartomark  <-- Altogether more interesting
> Operand stack:
>    --nostringval--   728   782   4340   0
> Execution stack:
>    %interp_exit   .runexec2   --nostringval--   --nostringval--   
> --nostringval-
> -   2   %stopped_push   --nostringval--   --nostringval--   --nostringval--   
> fa
> lse   1   %stopped_push   1932   1   3   %oparray_pop   1931   1   3   
> %oparray_
> pop   --nostringval--   1915   1   3   %oparray_pop   1803   1   3   
> %oparray_po
> p   --nostringval--   %errorexec_pop   .runexec2   --nostringval--   
> --nostringv
> al--   --nostringval--   2   %stopped_push   --nostringval--
> Dictionary stack:
>    --dict:1178/1684(ro)(G)--   --dict:0/20(G)--   --dict:83/200(L)--   
> --dict:64
> /80(L)--   --dict:9/197(L)--
> Current allocation mode is local
> Last OS error: No such file or directory
> Current file position is 4263
> GPL Ghostscript 9.07: Unrecoverable error, exit code 1
> So it looks like there is a duff entry in the eps file. If I hack it to put 
> in a line feed:
> 728 782 4340 0 S
> cleartomark end end pagesave restore
> Then I get:
> Error: /undefined in S
> When I look at the test.eps file, I can see where the symbol S is defined as 
> P stroke, so I'm not sure what's going on there; the ghostscript message 
> looks inaccurate. If I hack out the S commands and fix the sOutputFile then I 
> get a functional JPEG, albeit somewhat incomplete (ie lacking the actual 
> data). I did think about hacking through all the definitions to just write 
> raw postscript, but life is short. So I haven't. However, it does seem like 
> there is an error in the eps file, which if I'm understanding correctly, is 
> generated by Octave?

No, the test1.eps is generated by gnuplot. You can recreate "test.eps"
by executing "gnuplot octave-print-commands.log".

octave-print-commands.log looks fine for me (I've run it with gnuplot
and got the correct eps) so I guess its a gnuplot problem. What version
do you have and how did you install it?

-- Andy

reply via email to

[Prev in Thread] Current Thread [Next in Thread]