help-octave
[Top][All Lists]
Advanced

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

Re: saving plotted graph to a file.


From: Ben Abbott
Subject: Re: saving plotted graph to a file.
Date: Sat, 11 May 2013 03:25:37 +0800

On May 10, 2013, at 11:42 PM, Damian Harty wrote:

> -----Original Message-----
>> From: address@hidden [mailto:address@hidden On Behalf Of primi
>> Sent: 10 May 2013 6:02 AM
>> To: address@hidden
>> Subject: Re: saving plotted graph to a file.
> 
>> ya..am getting the following error.
> 
>> Error: /undefinedfilename in (and)
>> Operand stack:
> 
>> Execution stack:
>>   %interp_exit   .runexec2   --nostringval--   --nostringval--
>> --nostringval--   2   %stopped_push   --nostringval--
>>  --nostringval--   --nostringval--   false   1   %stopped_push
>> Dictionary stack:
>>   --dict:1179/1684(ro)(G)--   --dict:0/20(G)--   --dict:77/200(L)--
>> Current allocation mode is local
>> Last OS error: No such file or directory GPL Ghostscript 9.07: Unrecoverable 
>> error, exit code 1
> 
> 
> I'm having a similar issue, but the strange thing is that it only started 
> early this afternoon.
> 
> octave:16> print(1,'test.jpg')
> 
> Error: /syntaxerror in -file-
> 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   %oparray_
> pop   --nostringval--   1915   1   3   %oparray_pop   1803   1   3   
> %oparray_pop   --nostringval--   %errorexec_pop   .
> runexec2   --nostringval--   --nostringval--   --nostringval--   2   
> %stopped_push
> 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.6.4, Windows 7.
> 
> I have a load of examples where it has worked just fine - and I mean earlier 
> today - but now it point blank refuses to write out a file. I've rebooted the 
> machine, I've tried graphics_toolkit fltk and pkg unload oct2mat but neither 
> make any difference.
> 
> Nothing has changed in the installation to the best of my knowledge, I was 
> part way through a task and now it won't write the plot files any more. They 
> still look fine on the screen.
> 
> Suggestions, anyone?

Does a simple plot work?

        close all
        figure (1)
        plot (rand (3))
        print test.jpg

If it does, can you give a simple example that fails so that others can 
duplicate the problem?

Ben




reply via email to

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