help-octave
[Top][All Lists]
Advanced

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

Re: problem with printing graphics to file Octave 3.6.4, manual install,


From: Abbott, Ben
Subject: Re: problem with printing graphics to file Octave 3.6.4, manual install, windows
Date: Wed, 22 May 2013 03:19:38 +0000

On May 22, 2013, at 10:34 AM, ossands wrote:

> On Tue, May 21, 2013 at 9:50 PM, Abbott, Ben-2 [via Octave] <[hidden email]> 
> wrote:
> 
>> On May 22, 2013, at 9:39 AM, Obed Sands wrote: 
>> 
>> > On Tue, May 21, 2013 at 9:05 PM, Ben Abbott <[hidden email]> wrote: 
>> >> On May 19, 2013, at 04:07 PM, Obed Sands <[hidden email]> wrote: 
>> >> 
>> >>> I did the manual install for windows, as described sourceforge/ Octave 
>> >>> Forge (c.f. 
>> >>> http://sourceforge.net/projects/octave/files/Octave%20Windows%20binaries/)
>> >>>  
>> >>> 
>> >>> 
>> >>> Things seem to be working o.k. and Gnuplot seems to be in place as 
>> >>> 
>> >>> octave:1>plot(rand(40,3)) 
>> >>> 
>> >>> produces a good result but 
>> >>> 
>> >>> octave:2>print -djpg 'lkj.jpg' 
>> >>> 
>> >>> gives an error: 
>> >>> 
>> >>> Error: /undefined in nan 
>> >>> Operand stack: 
>> >>>    --nostringval-- 
>> >>> Execution Stack: 
>> >>>    %interp_exit   .runexec2 --nostringval--   --nostringval--   
>> >>> --nostringval--  2   %stopped_push  --nostringval--  --nostringval-- 
>> >>> --nostringval--    false   1   %stopped_push   1932  1 3  %oparray_pop   
>> >>> 1931  1   3  %opparay_pop   --nostringval--  1915   1  3   %opparay_pop  
>> >>>  1803  1  3  --nostringval--   %errorexec_pop   .runexec2  
>> >>> --nostringval--   --nostringval--  --nostringval--  2  %stopped_push  
>> >>> --nostringval-- 
>> >>> Dictionary stack: 
>> >>>     --dict:1179/1684(ro)(G)--   --dict:0/20(G)--   --dict:82/200(L)--   
>> >>> --dict:40/64(L)-- 
>> >>> Current allocation mode is local 
>> >>> Last OS error: No such file or directory 
>> >>> GPL  Ghostscript  9.07:  Unrecoverable error, exit code 1 
>> >>> octave:3> 
>> >>> 
>> >>> Any ideas will be appreciated, 
>> >>> 
>> >>> Scott Sands 
>> >>   
>> >> That ghostscript is being called indicates that Octave thinks it has 
>> >> produced an eps-file.  Please verify that eps output is working for you. 
>> >> 
>> >>     print -depsc test.eps 
>> >> 
>> >> If that works, please tell us what Octave returns with the debug flag. 
>> >> 
>> >>     print -djpg -debug test.jpg 
>> >> 
>> >> Ben 
>> >
>> >   Hello Ben, 
>> > 
>> > specifying epsc as the target file type gives the same message. 
>> > 
>> > eps output must not be working. 
>> > 
>> > oss
>> 
>> What does Octave return when you add the "-debug" flag? 
>> 
>> Please copy-n-paste what you typed and what Octave returned. 
>> 
>> Ben 
> 
> Here's a diary of the plot/print commands with the debug flag enabled
> octave:6> plot(rand(40,3))
> octave:7> print -depsc -debug lkj.eps
> epstool command: 'C:\Octave\Octave3.6.4_gcc4.6.2\gs\bin/gswin32c.exe -dQUIET 
> -dNOPAUSE -dBATCH -dSAFER -sDEVICE=epswrite -sOutputFile="lkj.eps" -'
> fltk-pipeline: 'C:\Octave\Octave3.6.4_gcc4.6.2\gs\bin/gswin32c.exe -dQUIET 
> -dNOPAUSE -dBATCH -dSAFER -sDEVICE=epswrite -sOutputFile="lkj.eps" -'
> 
> he other error messages follow as before (i.e. Error: /undefined in nan
> Operand stack:...). These messages do not, however, show up in the diary 
> file. Additionally, I can't seem to ^C/^V them into a window. I've had to 
> transcribe them by hand in the past posting. They are, pretty-much as I 
> reported and I'd guess that the differences have to do with my transcription 
> skills. I can get a little more anal with the transcription of these messages 
> if you think that would help. 
> 
> The gswin32c executable is there, as promised. Same result with 
> graphics_toolkit('gnuplot') and graphics_toolkit('fltk')
> 
> oss

Please don't top-post.  Bottom posting makes it easier to follow the 
conversation.

> Because it is difficult to read.
>> Why is top posting discouraged?
>>> Top posting is discouraged.

> Bottom posting is proper etiquette here
>> Why is bottom posting preferred?
>>> Because it is easy to read.

In gmail, at the bottom of the window you reply in you'll see "...".  Click on 
that and then scroll down below the text and reply there.  Also since the 
emails are archived, please send plain-text so that the look and feel is 
consistent for all responses.

Ok, back to your problem.

Please try the print command with the gnuplot toolkit.

        close all
        graphics_toolkit gnuplot
        plot (rand (3))
        plot -depsc -debug test.eps

If there is an error (there should not be one since Octave does not use epstool 
or ghostscript in this case) copy-n-paste the entire result from Octave.

Ben




reply via email to

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